/* Shared by every page. Fonts are hosted here (no Google Fonts), see assets/fonts/OFL-*.txt */
@font-face { font-family: 'Press Start 2P'; src: url('/assets/fonts/PressStart2P-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('/assets/fonts/SpaceMono-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('/assets/fonts/SpaceMono-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
/* baseline the pages were designed on top of */
:root { box-sizing: border-box; }
body { margin: 0; padding: 0; font-size: 14px; }
img { max-width: 100%; }
[hidden]:not([hidden=until-found i]) { display: none !important; }
/* subtitles under page titles: a little larger and softer than the body text */
html body .sub { font-size: 14.5px; color: #b8adc9; }
.top-btn { position: fixed; right: 25px; bottom: calc(148px + env(safe-area-inset-bottom, 0px)); z-index: 2; width: 44px; height: 44px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #1a0f2a; border: 2px solid #7a3fc4; box-shadow: 0 0 14px rgba(122, 63, 196, 0.45); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.top-btn.show { opacity: 1; pointer-events: auto; transform: none; }
.top-btn svg { width: 20px; height: 20px; display: block; }
.top-btn:focus-visible { outline: 2px solid #f2b94b; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .top-btn { transition: none; } }
/* bullets whose contents include links or bold text stay one block */
.list li > .li-t, .promise li > .li-t { flex: 1; min-width: 0; }
/* header: the logo is a link to the Start page, with a small quick menu beside it */
a.logo { color: inherit; text-decoration: none; }
.logo-wrap { display: flex; align-items: center; gap: 4px; position: relative; min-width: 0; }
.logo-wrap a.logo { padding: 4px 6px; margin: -4px 0 -4px -6px; border-radius: 4px; transition: background .15s; }
.logo-wrap a.logo svg { transition: transform .18s; }
.logo-wrap a.logo:hover, .logo-wrap a.logo:focus-visible { background: rgba(122, 63, 196, 0.14); outline: 1px solid rgba(184, 137, 47, 0.55); }
.logo-wrap a.logo:hover svg, .logo-wrap a.logo:focus-visible svg { transform: rotate(-8deg) translateY(-1px); }
.qm-btn { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; background: none; border: 1px solid transparent; border-radius: 4px; color: #b795ee; cursor: pointer; }
.qm-btn svg { width: 10px; height: 6px; display: block; }
.qm-btn:hover, .qm-btn[aria-expanded="true"] { background: rgba(122, 63, 196, 0.14); border-color: #2f2246; }
.qm-btn:focus-visible { outline: 2px solid #f2b94b; outline-offset: 2px; }
.qm { position: absolute; z-index: 40; top: 100%; left: 0; margin-top: 10px; min-width: 230px; padding: 6px; background: #120d1c; border: 1px solid #2f2246; border-radius: 6px; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6); display: flex; flex-direction: column; }
.qm a { display: block; padding: 8px 10px; border-radius: 4px; font: 12px 'Space Mono', monospace; color: #e6dcee; text-decoration: none; }
.qm a:hover, .qm a:focus-visible { background: #1c1430; outline: none; }
.qm a.resume { color: #f2b94b; }
.hdr-user { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.hdr-hi { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #e6dcee; }
.hdr-hi b { color: #efe3cf; }
.hdr-ic { display: inline-block; width: 20px; height: 20px; }
.hdr-ic svg { width: 100%; height: 100%; display: block; }
.hdr-key { width: 24px; height: 24px; padding: 2px; border: 1px solid #b8892f; border-radius: 4px; background: #241a0a; }
@media (max-width: 640px) { .hdr-word, .hdr-dash { display: none; } }
/* pop-up box: stays until it is dismissed */
.st-toast { position: fixed; z-index: 60; top: 78px; right: 16px; width: min(420px, calc(100% - 32px)); display: flex; gap: 12px; align-items: flex-start; border: 1px solid #b8892f; border-radius: 8px; background: #17101f; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6), 0 0 0 1px #2a2010 inset; padding: 12px 14px; animation: st-slide .45s ease-out both; font-family: 'Space Mono', monospace; }
@keyframes st-slide { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .st-toast { animation: none; } }
.st-toast .bdg { flex: none; width: 44px; height: 44px; padding: 7px; border: 1px solid #b8892f; border-radius: 6px; background: #0e0916; }
.st-toast .bdg svg { width: 100%; height: 100%; display: block; }
.st-toast .tx { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.st-toast .tt { font-family: 'Press Start 2P', monospace; font-size: 10px; line-height: 1.6; color: #efe3cf; }
.st-toast .ts { font-size: 12.5px; line-height: 1.6; color: #e6dcee; }
.st-toast .tn { font-size: 12px; line-height: 1.6; color: #b8adc9; }
.st-toast .row { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.st-toast button { font: 12px 'Space Mono', monospace; color: #b795ee; background: #1a1230; border: 1px solid #2f2246; border-radius: 4px; padding: 5px 11px; cursor: pointer; }
.st-toast button.gold { color: #f2b94b; border-color: #b8892f; }
.st-toast button:focus-visible { outline: 2px solid #f2b94b; outline-offset: 2px; }
