/* ==========================================================================
   frxctura.com // v4
   quieter. black page, thin rules, my gifs doing the talking.
   everything under .site is desaturated a bit so all the random gifs
   from different decades sit in the same dirty palette.
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #050404;
  --text: #a9a298;
  --text-hi: #ddd6ca;
  --text-lo: #6d665c;
  --rule: #34302b;
  --rule-hi: #58524a;
  --red: #9e1b1b;
  --link: #cfc6b8;
  --link-hover: #e05a4a;
  --paper-ink: #1c140c;

  --f-mono: Cousine, "Courier New", Courier, monospace;
  --f-black: "UnifrakturMaguntia", "Old English Text MT", "Times New Roman", serif;
  --f-serif: Tinos, "Times New Roman", serif;
  --f-px: VT323, "Courier New", monospace;
  --wrap: 980px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scrollbar-color: #3a342e #050404; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg) url(../images/frx/bg_wall.png) 0 0 / 256px repeat fixed;
  color: var(--text);
  font: 15px/1.6 var(--f-mono);
  cursor: url(../images/emotes/hand_pointing.gif) 0 0, auto;
  overflow-x: hidden;
}
img { max-width: 100%; }
img[src$=".gif"] { image-rendering: pixelated; }
::selection { background: var(--red); color: #fff; }
p { margin: 0 0 1em; }
a { color: var(--link); font-weight: bold; text-decoration: underline; text-decoration-color: var(--rule-hi); text-underline-offset: 2px; }
a:visited { color: #b8aebf; }
a:hover, a:focus-visible { color: var(--link-hover); text-decoration-color: currentColor; outline: none; }
:focus-visible { outline: 1px dotted var(--text-hi); outline-offset: 2px; }
strong { color: var(--text-hi); }
em { font-style: italic; color: var(--text-hi); }
.dim { color: var(--text-lo); }
.center { text-align: center; }
.emote { height: 18px; width: auto; vertical-align: -4px; }
.skip { position: absolute; left: -9999px; top: 6px; z-index: 999; background: #000; color: #fff; padding: 4px 8px; }
.skip:focus { left: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ---------- atmosphere: just fog, grain, a vignette ------------------------- */
.fx { position: fixed; inset: 0; pointer-events: none; }
.fx-fog { z-index: 3; overflow: hidden; }
.fx-fog::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -10vh; height: 55vh;
  background: url(../images/frx/fog.png) 0 0 / 1500px 100% repeat-x;
  filter: grayscale(1) brightness(.5);
  opacity: .45;
  animation: fog 140s linear infinite;
}
@keyframes fog { from { background-position-x: 0; } to { background-position-x: 1500px; } }
.fx-dust { z-index: 90; background: url(../images/frx/dust.png) 0 0 / 512px; opacity: .35; animation: dust .6s steps(1) infinite; }
@keyframes dust { 0% { background-position: 0 0; } 33% { background-position: -171px 93px; } 66% { background-position: 211px -140px; } }
.fx-vignette { z-index: 92; background: radial-gradient(ellipse 90% 80% at 50% 40%, transparent 50%, rgba(0, 0, 0, .8) 100%); }

.site { position: relative; z-index: 2; filter: saturate(.55) contrast(1.05); }

/* ---------- header ---------------------------------------------------------- */
.head { max-width: var(--wrap); margin: 0 auto; padding: 18px 12px 0; text-align: center; }
.head__logo { display: inline-block; line-height: 0; }
.head__logo img { width: min(520px, 100%); height: auto; }
.head__logo:hover { filter: brightness(1.2); }
.head__sub { margin: -6px 0 0; font: italic 15px var(--f-serif); color: var(--text-lo); }

.marquee { max-width: var(--wrap); margin: 14px auto 0; padding: 0 12px; }
.marquee marquee { display: block; padding: 3px 0; border-block: 1px solid var(--rule); font: 18px var(--f-px); color: var(--text); }
.marquee img { height: 18px; vertical-align: -4px; }

.nav { max-width: var(--wrap); margin: 10px auto 0; padding: 0 12px; }
.nav ul { list-style: square; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: space-evenly; gap: 4px 18px; }
.nav li { color: var(--text-lo); }
.nav a { font: 28px/1.2 var(--f-black); font-weight: normal; color: var(--text); text-decoration: none; }
.nav a:hover { color: var(--text-hi); text-decoration: underline; text-decoration-color: var(--red); }
.nav a[aria-current="page"] { color: var(--text-hi); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.live-dot { margin-left: 4px; font: 14px var(--f-px); color: #fff; background: var(--red); padding: 0 4px; vertical-align: 6px; animation: blink 1s steps(1) infinite; }

/* ---------- layout ------------------------------------------------------------ */
.frame {
  max-width: var(--wrap); margin: 18px auto 0; padding: 0 12px;
  display: grid; grid-template-columns: 190px minmax(0, 1fr) 112px; grid-template-areas: "left main right";
  gap: 18px; align-items: start;
}
.main { grid-area: main; min-width: 0; }
.left { grid-area: left; min-width: 0; display: grid; gap: 18px; }
.right { grid-area: right; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* crovid-ish label: small italic caps + a rule */
.label { margin: 0 0 8px; padding-bottom: 3px; border-bottom: 2px solid var(--rule-hi); font: italic 12px var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--text); }
.side { font-size: 12.5px; line-height: 1.5; }
.side p { margin: 0 0 .5em; }

.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.links a { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.links img { width: 22px; height: 22px; object-fit: contain; flex: none; }

.me { display: grid; grid-template-columns: 64px 1fr; gap: 8px; align-items: start; }
.me__pic { width: 64px; height: 64px; background: #000 url(../images/frx/static.gif) 0 0 / 80px 60px; border: 1px solid var(--rule-hi); overflow: hidden; image-rendering: pixelated; }
.me__pic img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(.6) contrast(1.1); }
.me dl { margin: 0; }
.me dt { color: var(--text-lo); font-size: 11px; }
.me dd { margin: 0 0 2px; color: var(--text-hi); }
.status { display: flex; align-items: center; gap: 6px; margin-top: 8px; font: 16px/1.1 var(--f-px); color: var(--text); }
.status .dot { width: 7px; height: 7px; flex: none; background: #444; }
.status[data-status="online"] .dot { background: #6fa31c; }
.status[data-status="idle"] .dot { background: #b89a10; }
.status[data-status="dnd"] .dot { background: var(--red); }
.presence { margin-top: 4px; font: 15px/1.2 var(--f-px); color: var(--text-hi); }
.presence img { width: 16px; height: 16px; vertical-align: -3px; }

#spotify-text { font: 16px/1.15 var(--f-px); color: var(--text); overflow-wrap: anywhere; }
#spotify-text strong { color: var(--text-hi); font-weight: normal; }
#spotify-text .artist { display: block; color: var(--text-lo); }
#spotify-text .static { color: var(--text-lo); }
#spotify-art-row { margin-top: 6px; }
#spotify-album-art { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--rule-hi); filter: grayscale(.4); }
#spotify-progress-row { display: flex; align-items: center; gap: 5px; margin-top: 5px; font: 14px var(--f-px); color: var(--text-lo); }
.sp-track { flex: 1; height: 5px; background: #111; border: 1px solid var(--rule); }
#sp-bar { display: block; height: 100%; width: 0; background: var(--text); }
.radio__dial, .radio__needle, .freq { display: none; }

.relic { display: grid; place-items: center; height: 110px; perspective: 400px; }
.relic__cube { --rx: -20deg; --ry: 30deg; position: relative; width: 56px; height: 56px; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); touch-action: none; }
.relic__cube .face { position: absolute; inset: 0; background: #111 url(../images/thing.webp) center / cover; border: 1px solid #000; image-rendering: pixelated; }
.relic__cube .f1 { transform: translateZ(28px); } .relic__cube .f2 { transform: rotateY(90deg) translateZ(28px); }
.relic__cube .f3 { transform: rotateY(180deg) translateZ(28px); } .relic__cube .f4 { transform: rotateY(-90deg) translateZ(28px); }
.relic__cube .f5 { transform: rotateX(90deg) translateZ(28px); } .relic__cube .f6 { transform: rotateX(-90deg) translateZ(28px); }

.gifs { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.gifs img { display: block; height: auto; }
.badges { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; }
.badges a { line-height: 0; }
.badges img, .locker__grid img { width: 88px; height: 31px; image-rendering: pixelated; }
.dead-btn { display: inline-grid; place-items: center; width: 88px; height: 31px; overflow: hidden; background: #000; border: 1px solid var(--rule); font: 9px/1 var(--f-mono); color: var(--text-lo); text-transform: lowercase; text-align: center; padding: 2px; word-break: break-all; }

.transmission { margin: 0; min-height: 3.2em; font: 16px/1.2 var(--f-px); color: var(--text); }
.transmission::after { content: "_"; animation: blink 1s steps(1) infinite; }

/* right column: stamps, crovid style */
.stamp { display: block; width: 100px; height: 56px; object-fit: cover; border: 2px solid #cfc8bc; outline: 1px solid #000; background: #000; }
.stamp--tall { height: auto; max-height: 120px; object-fit: contain; }
.right .blinkie { width: 100px; height: auto; }

/* the eye */
.eye { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100px; padding: 6px 0; border: 2px solid #cfc8bc; outline: 1px solid #000; background: #000; }
.eye__ball { position: relative; width: 60px; height: 34px; background: #cbc2b0; border-radius: 50%; overflow: hidden; animation: eye-blink 6s infinite; }
.eye__ball::before { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: radial-gradient(circle, #000 0 32%, #4a2a18 33% 60%, #1a0a04 61%); transform: translate(var(--ex, 0px), var(--ey, 0px)); }
.eye__ball::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, transparent 45%, rgba(60, 0, 0, .55) 100%); }
@keyframes eye-blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.05); } }
.eye span { font: 13px/1 var(--f-px); color: var(--text-lo); }

/* ---------- main column ------------------------------------------------------- */
.welcome { text-align: center; margin: 0 0 6px; line-height: 0; }
.welcome img { max-width: 100%; height: auto; }
h1.title { margin: 0 0 4px; text-align: center; font: 52px/1.1 var(--f-black); font-weight: normal; color: var(--text-hi); text-shadow: 2px 2px 0 #000, 0 0 1px #000; }
.intro { text-align: center; max-width: 52ch; margin: 0 auto 1em; }
.intro--left { text-align: left; }
.updated { text-align: center; color: var(--text-lo); font-size: 13px; }

.div { margin: 22px 0; text-align: center; line-height: 0; overflow: hidden; }
.div img { max-width: 100%; height: auto; }

h2.h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 26px/1.1 var(--f-black); font-weight: normal; color: var(--text-hi); }
h2.h img { height: 26px; width: auto; flex: none; }
h2.h small { margin-left: auto; font: italic 12px var(--f-mono); color: var(--text-lo); }
.sec p { max-width: 64ch; }
.redact { background: #111; color: transparent; padding: 0 3px; }
.redact:hover, .redact:focus { color: var(--link-hover); background: transparent; }

.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 4px; }
.row img { display: block; height: auto; max-height: 110px; width: auto; }

.tags { list-style: none; margin: 8px 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.tags li { font: 17px var(--f-px); color: var(--text-hi); }
.tags li::before { content: "+ "; color: var(--red); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 10px 0 14px; }
.stats div { border: 1px solid var(--rule); padding: 6px 10px; background: #000; }
.stats b { display: block; font: 30px/1 var(--f-px); color: var(--text-hi); font-weight: normal; }
.stats span { font-size: 12px; color: var(--text-lo); }

.embed { margin: 10px 0 18px; border: 1px solid var(--rule); background: #000; }
.embed__bar { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 2px 8px; border-bottom: 1px solid var(--rule); font-size: 12px; color: var(--text-lo); }
.embed pre { margin: 0; padding: 8px 10px; font: 16px/1.25 var(--f-px); color: var(--text); white-space: pre-wrap; word-break: break-all; }
button, .btn {
  font: 12px var(--f-mono); color: var(--text-hi); background: #111; border: 1px solid var(--rule-hi);
  padding: 3px 9px; cursor: pointer; text-decoration: none;
}
button:hover, .btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn:visited { color: var(--text-hi); }

.mybutton { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.mybutton a { line-height: 0; }
.mybutton img { display: block; }
.mybutton p { margin: 0 0 0 6px; font-size: 13px; }

.fig { margin: 12px auto; display: block; width: fit-content; max-width: 100%; }
.fig img { display: block; max-width: 100%; height: auto; border: 1px solid var(--rule-hi); }
.fig figcaption { font-size: 12px; color: var(--text-lo); text-align: center; margin-top: 3px; }
.fig.is-dead::before { content: ""; display: block; width: 240px; height: 130px; background: url(../images/frx/static.gif) 0 0 / 160px 120px; image-rendering: pixelated; border: 1px solid var(--rule); }
.fig.is-dead figcaption::before { content: "(image missing) "; }
.political { margin: 18px auto; max-width: 380px; }
.political img { display: block; width: 100%; height: auto; }
.political.is-dead::after { content: attr(data-alt); display: block; padding: 14px; text-align: center; font: 26px var(--f-black); color: var(--text-hi); border: 1px solid var(--rule); }

.linklist { list-style: none; margin: 6px 0 12px; padding: 0; display: grid; gap: 3px; }
.linklist li::before { content: "\25AA  "; color: var(--red); }
.linklist .desc { color: var(--text-lo); }

.locker { margin-top: 26px; }
.locker__bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 12px; color: var(--text-lo); }
.locker__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; max-height: 300px; overflow: auto; padding: 4px; border: 1px solid var(--rule); background: #000; }
.locker.is-open .locker__grid { max-height: none; }

/* ---------- footer ------------------------------------------------------------ */
.foot { max-width: var(--wrap); margin: 24px auto 0; padding: 0 12px 28px; text-align: center; font-size: 12px; color: var(--text-lo); }
.foot .div { margin: 0 0 12px; }
.foot p { margin: 4px 0; }
.foot-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; margin: 10px 0; }
.foot-buttons img { width: 88px; height: 31px; }
.counter { font: 16px var(--f-px); color: var(--text); }
.counter .dg { display: inline-block; width: 12px; height: 18px; background: url(../images/frx/counter.png) 0 0 / 132px 18px no-repeat; image-rendering: pixelated; vertical-align: -4px; }

/* ---------- page bits ----------------------------------------------------------- */
/* twitch */
.channels { display: grid; gap: 22px; margin-top: 16px; }
.twitch-live-status { margin-left: auto; font: 15px var(--f-px); color: var(--text-lo); }
.twitch-live-status.is-live { color: #fff; background: var(--red); padding: 0 5px; animation: blink 1s steps(1) infinite; }
.tv { position: relative; padding: 10px; background: #0b0a09; border: 1px solid var(--rule-hi); border-radius: 10px; }
.twitch-live-preview { position: relative; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; background: #000; border-radius: 12px / 10px; }
.twitch-live-preview canvas, .twitch-live-preview iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; image-rendering: pixelated; }
.twitch-live-preview .nosig { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 2px; pointer-events: none; }
.twitch-live-preview .nosig b { font: 34px/1 var(--f-black); font-weight: normal; color: var(--text-hi); background: #000; padding: 2px 12px; }
.twitch-live-preview .nosig span { font: 16px var(--f-px); color: var(--text); background: #000; padding: 0 8px; }
.channel__foot { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.channel__title { font: 16px var(--f-px); color: var(--text); }

/* blog: posts are notes */
#blog-posts, #blog-single-view { display: grid; gap: 20px; margin-top: 12px; }
.blog-post { padding: 16px 18px 12px; background: #b0a080 url(../images/frx/paper.png) 0 0 / 420px; color: var(--paper-ink); box-shadow: 3px 4px 0 #000, inset 0 0 40px rgba(60, 25, 0, .4); }
.blog-post:nth-child(odd) { transform: rotate(-.3deg); }
.blog-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; border-bottom: 1px solid var(--paper-ink); padding-bottom: 5px; margin-bottom: 8px; }
.blog-title { flex: 1 1 220px; margin: 0; font: 24px/1.1 var(--f-black); font-weight: normal; }
.blog-title a, .blog-title a:visited { color: var(--paper-ink); text-decoration: none; font-weight: normal; }
.blog-title a:hover { color: #6a0a0a; text-decoration: underline; }
.blog-content img.paste, .blog-content video.paste { display: block; max-width: 100%; max-height: 420px; margin: 8px 0; }
.blog-content img.emote { height: 1.5em; width: auto; border: 0 !important; vertical-align: middle; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.blog-date { font-size: 12px; }
.copy-blog-link-btn { font-size: 11px !important; }
.blog-content { overflow-wrap: anywhere; }
.blog-content a, .blog-content a:visited { color: #6a0a0a; }
.blog-content blockquote { margin: 1em 0; padding: 4px 12px; border-left: 3px solid #6a0a0a; }
.blog-content code { background: var(--paper-ink); color: #e8dcc0; padding: 0 4px; }
.blog-content strong, .blog-content b { color: var(--paper-ink); font-weight: bold; }
.blog-content em, .blog-content i { color: #4a0a0a; }
.blog-content img:not([style*="1.5em"]), .blog-content video { max-width: 100%; border: 2px solid var(--paper-ink); }
.blog-pagination { display: flex; justify-content: center; align-items: center; gap: 10px; }
.blog-pagination span { color: var(--text) !important; font: 17px var(--f-px) !important; }
.blog-empty { color: var(--text-lo); }

/* guestbook */
.rules { margin: 0 0 14px; color: var(--text); }
.gb-form { display: grid; grid-template-columns: 1fr 2fr auto; gap: 10px; align-items: end; padding: 10px; margin-bottom: 20px; border: 1px solid var(--rule); background: #000; }
.field { display: grid; gap: 2px; min-width: 0; }
.field label { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-lo); }
.char-counter { color: var(--text-lo); }
.char-counter.is-low { color: var(--link-hover) !important; }
input[type="text"] { width: 100%; font: 17px var(--f-px); color: var(--text-hi); background: #0a0908; border: 1px solid var(--rule-hi); padding: 4px 6px; border-radius: 0; }
input[type="text"]:focus { outline: 1px solid var(--text); }
input::placeholder { color: #4d473f; }
#guestbook-form-status { grid-column: 1 / -1; font: 16px var(--f-px); color: var(--text-hi) !important; }
#guestbook-form-status:empty { display: none; }
#guestbook-entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.guestbook-entry { padding: 8px 10px 7px; background: #b0a080 url(../images/frx/paper.png); color: var(--paper-ink); box-shadow: 2px 3px 0 #000, inset 0 0 26px rgba(60, 25, 0, .4); transform: rotate(-.8deg); }
.guestbook-entry:nth-child(3n) { transform: rotate(.7deg); background-position: 120px 40px; }
.guestbook-entry:nth-child(4n) { background-position: 200px 300px; transform: none; }
.guestbook-entry .emote { display: none; }
.guestbook-entry-main { display: grid; gap: 1px; }
.guestbook-name { font: bold 13px var(--f-mono); overflow-wrap: anywhere; }
.guestbook-message { font: 13px/1.35 var(--f-mono); overflow-wrap: anywhere; }
.guestbook-replies { margin-top: 6px; padding-top: 5px; border-top: 1px dashed currentColor; }
.guestbook-entry--reply { background: transparent !important; box-shadow: none !important; transform: none !important; padding: 0; }
.guestbook-entry--reply .guestbook-name::before { content: "re: "; }

/* exif */
#exif-dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 180px; padding: 18px; text-align: center; border: 1px dashed var(--rule-hi); background: #000; }
#exif-dropzone .big { font: 26px var(--f-black); color: var(--text-hi); }
#exif-dropzone .small { font-size: 12px; color: var(--text-lo); }
#exif-dropzone img { height: 60px; width: auto; }
#exif-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
#exif-preview-row { gap: 14px; align-items: flex-start; flex-wrap: wrap; margin-top: 14px; }
#exif-preview-img { max-width: 200px; max-height: 200px; border: 1px solid var(--rule-hi); }
#exif-filename { color: var(--text-hi); word-break: break-all; margin-bottom: 6px; }
#exif-loading { color: var(--text); margin-top: 12px; }
#exif-empty-msg { color: var(--link-hover); margin-top: 12px; }
#exif-results { margin-top: 14px; display: grid; gap: 10px; }
.stats-box { padding: 8px 10px; margin: 0 !important; border: 1px solid var(--rule); background: #000; }
.stats-box > div:first-child { font: 20px var(--f-black) !important; color: var(--text-hi) !important; text-transform: none !important; letter-spacing: 0 !important; border-bottom: 1px solid var(--rule); margin-bottom: 4px; }
.stat-line { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 10px; padding: 1px 0; font-size: 13px; }
.stat-label { color: var(--text-lo); }
.stat-value { color: var(--text-hi); overflow-wrap: anywhere; }

/* music */
.djlogo { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.djlogo .fig { margin: 0; width: 200px; }

/* ---------- toasts, transitions --------------------------------------------- */
#fx-static { position: fixed; inset: 0; z-index: 150; width: 100%; height: 100%; pointer-events: none; opacity: 0; image-rendering: pixelated; }
#fx-static.is-on { opacity: .8; }
.toasts { position: fixed; left: 12px; bottom: 12px; z-index: 160; display: grid; gap: 6px; pointer-events: none; max-width: min(320px, calc(100vw - 24px)); }
.toast { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; align-items: center; padding: 6px 10px; background: #000; border: 1px solid var(--rule-hi); font: 16px/1.15 var(--f-px); color: var(--text); }
.toast img { grid-row: span 2; height: 26px; width: auto; }
.toast b { color: var(--text-hi); font-weight: normal; }

/* ---------- responsive ---------------------------------------------------------- */
@media (max-width: 860px) {
  .frame { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "left" "right"; }
  .left { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .right { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .gb-form { grid-template-columns: 1fr; }
  .nav a { font-size: 24px; }
}
@media (max-width: 480px) {
  h1.title { font-size: 40px; }
  .stat-line { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
