162 lines
5.1 KiB
CSS
162 lines
5.1 KiB
CSS
/* Urgent telegrams and the end-of-game front page */
|
|
|
|
/* ---- Urgent telegram: slides in over the desk ---- */
|
|
.alerts {
|
|
position: absolute;
|
|
top: 18px;
|
|
left: 50%;
|
|
z-index: 30;
|
|
width: min(560px, 90%);
|
|
transform: translateX(-50%);
|
|
}
|
|
.alerts[hidden] { display: none; }
|
|
|
|
.telegram {
|
|
padding: 12px 18px 14px;
|
|
background: #efe0a2 var(--paper-grain);
|
|
border-top: 7px solid #c9a93a;
|
|
border-bottom: 7px solid #c9a93a;
|
|
font-family: var(--font-num);
|
|
box-shadow: 0 14px 34px rgba(0, 0, 0, 0.7);
|
|
transform: rotate(-0.6deg);
|
|
animation: telegram-in 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.1) both;
|
|
}
|
|
.telegram__head {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding-bottom: 3px;
|
|
border-bottom: 2px dashed var(--ink);
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.16em;
|
|
text-transform: uppercase;
|
|
color: var(--ink-red);
|
|
}
|
|
.telegram h3 { margin: 8px 0 4px; font-family: var(--font-num); font-weight: 700; font-size: 19px; text-transform: uppercase; }
|
|
.telegram p { margin: 0 0 6px; font-size: 13px; line-height: 1.5; letter-spacing: 0.04em; }
|
|
.telegram .brass { margin-top: 6px; }
|
|
|
|
@keyframes telegram-in {
|
|
from { opacity: 0; transform: translateY(-60px) rotate(-3deg); }
|
|
to { opacity: 1; transform: translateY(0) rotate(-0.6deg); }
|
|
}
|
|
@media (prefers-reduced-motion: reduce) { .telegram { animation: none; } }
|
|
|
|
/* ---- Profile question (first thing in the folder) ---- */
|
|
.profile__ask { font-weight: 700; margin-top: 14px; }
|
|
.profile__choices { display: grid; gap: 8px; margin: 10px 0 6px; }
|
|
.profile__choices .brass--wide { margin-top: 0; }
|
|
.profile__note { margin: 8px 0 0; font-size: 11px; opacity: 0.7; }
|
|
|
|
/* ---- End of game ---- */
|
|
#endgame {
|
|
grid-column: 1 / -1;
|
|
grid-row: 1;
|
|
min-height: 0;
|
|
}
|
|
#endgame[hidden] { display: none; }
|
|
|
|
#pad.is-endgame #dashboard,
|
|
#pad.is-endgame #folder,
|
|
#pad.is-endgame #side,
|
|
#pad.is-endgame #ledger { display: none; }
|
|
|
|
.end {
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 14px 22px 12px;
|
|
overflow-y: auto;
|
|
transform: none;
|
|
}
|
|
|
|
.end__banner { text-align: center; padding: 4px 0 10px; }
|
|
.end__banner h1 {
|
|
margin: 0;
|
|
font-family: var(--font-head);
|
|
font-weight: 400;
|
|
font-size: 40px;
|
|
line-height: 1.05;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
.end--lost .end__banner h1 { color: var(--ink-red); }
|
|
.end__banner p { margin: 4px 0 0; font-size: 16px; font-style: italic; }
|
|
|
|
.end__grid {
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: grid;
|
|
grid-template-columns: minmax(250px, 1fr) minmax(300px, 1.3fr) minmax(250px, 1fr);
|
|
gap: 22px;
|
|
padding-top: 10px;
|
|
border-top: 1px solid var(--text);
|
|
}
|
|
.end__grid h3 {
|
|
margin: 0 0 6px;
|
|
padding-bottom: 2px;
|
|
font-size: 14px;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
border-bottom: 1px solid rgba(43, 36, 24, 0.5);
|
|
}
|
|
|
|
.end__verdict { display: flex; flex-direction: column; min-height: 0; }
|
|
.end__grade {
|
|
align-self: flex-start;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin: 4px 0 6px;
|
|
font-size: 12px;
|
|
letter-spacing: 0.1em;
|
|
text-transform: uppercase;
|
|
}
|
|
.end__letter {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 74px;
|
|
height: 74px;
|
|
border: 5px double var(--ink);
|
|
border-radius: 50%;
|
|
font-family: var(--font-head);
|
|
font-size: 50px;
|
|
line-height: 1;
|
|
color: var(--ink);
|
|
transform: rotate(-6deg);
|
|
}
|
|
.end__grade[data-grade="S"] .end__letter,
|
|
.end__grade[data-grade="A"] .end__letter { color: var(--ink-green); border-color: var(--ink-green); }
|
|
.end__grade[data-grade="D"] .end__letter,
|
|
.end__grade[data-grade="F"] .end__letter { color: var(--ink-red); border-color: var(--ink-red); }
|
|
.end__title { margin: 4px 0; font-size: 24px; line-height: 1.1; font-style: italic; }
|
|
.end__title::before { content: "« "; }
|
|
.end__title::after { content: " »"; }
|
|
.end__text { margin: 0 0 8px; font-size: 15px; line-height: 1.4; }
|
|
.end__score { margin: auto 0 0; font-family: var(--font-num); font-size: 12px; opacity: 0.85; }
|
|
|
|
.end__charts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
|
|
.end__chart { margin: 0; }
|
|
.end__chart figcaption { display: flex; align-items: baseline; gap: 6px; font-size: 13px; white-space: nowrap; }
|
|
.end__chart figcaption span { overflow: hidden; text-overflow: ellipsis; }
|
|
.end__chart figcaption b { font-family: var(--font-num); }
|
|
.end__chart figcaption small { margin-left: auto; font-size: 10px; opacity: 0.7; }
|
|
.chart { display: block; height: 96px; background: rgba(255, 255, 255, 0.3); border: 1px solid rgba(60, 105, 140, 0.4); }
|
|
|
|
.end__decisions ol { margin: 0; padding: 0; list-style: none; counter-reset: d; }
|
|
.end__decisions li { counter-increment: d; position: relative; padding: 0 0 8px 26px; font-size: 14px; line-height: 1.25; }
|
|
.end__decisions li::before {
|
|
content: counter(d);
|
|
position: absolute;
|
|
left: 0;
|
|
top: -1px;
|
|
font-family: var(--font-head);
|
|
font-size: 22px;
|
|
color: var(--ink-red);
|
|
}
|
|
.end__decisions li b { display: block; font-weight: 400; font-size: 15px; }
|
|
.end__when { display: block; font-size: 11px; opacity: 0.7; }
|
|
.end__chose { display: block; font-size: 12px; font-style: italic; }
|
|
|
|
.end__foot { padding-top: 8px; text-align: center; }
|
|
.end__foot .brass--wide { margin-top: 0; }
|