/* chainblox: sea-glass sky, deep-bay ink, and worlds as blocks you could step onto */
:root {
  --sky: #D6ECE6;
  --sky-deep: #BFDFD6;
  --ink: #14283C;
  --ink-soft: #3D5468;
  --grass: #3E9E52;
  --grass-dark: #2A7139;
  --yellow: #FFC53D;
  --yellow-dark: #D99A0E;
  --brick: #C8443A;
  --paper: #F7FBFA;
  --display: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif;
  --body: 'Atkinson Hyperlegible', 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { background: var(--sky); }
body { margin: 0; background: var(--sky); color: var(--ink); font: 17px/1.55 var(--body); }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---------- the bar ---------- */
.bar { display: flex; align-items: center; gap: 24px; padding: 14px var(--gutter); }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 26px/1 var(--display); letter-spacing: -0.02em; }
.mark svg, .mark img { width: 30px; height: 30px; display: block; }
.bar nav { display: flex; gap: 4px; margin-left: 12px; }
.bar nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 700; color: var(--ink-soft); }
.bar nav a:hover { color: var(--ink); background: var(--sky-deep); }
.bar nav a[aria-current="page"] { color: var(--ink); background: var(--paper); }
.who { margin-left: auto; font: 700 15px var(--body); color: var(--ink); background: var(--yellow); border: 0; border-radius: 10px; padding: 10px 16px; box-shadow: 0 4px 0 var(--yellow-dark); cursor: pointer; }
.who:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--yellow-dark); }
.who.signed { background: var(--paper); box-shadow: 0 4px 0 var(--sky-deep); }

main { padding: 0 var(--gutter) 64px; min-height: 60vh; }
main:focus { outline: none; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin: 56px 0 20px; }
.lede { color: var(--ink-soft); max-width: 60ch; margin: 0 0 24px; }

/* ---------- the hero: one world, big ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; margin-top: 12px; }
.hero h1 { font-size: clamp(44px, 7.4vw, 104px); font-weight: 800; letter-spacing: -0.035em; }
.hero p { font-size: 20px; color: var(--ink-soft); max-width: 34ch; margin: 18px 0 28px; }
.hero .shot { order: 2; }
.play { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 20px var(--display); color: #fff; background: var(--grass); border-radius: 12px; padding: 14px 26px; box-shadow: 0 6px 0 var(--grass-dark); }
.play:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--grass-dark); }
.play[aria-disabled="true"] { background: var(--ink-soft); box-shadow: 0 6px 0 var(--ink); pointer-events: none; }
.hero .world-name { font: 700 15px var(--body); color: var(--ink-soft); margin-bottom: 8px; display: block; }

/* the block: a picture with its side below, as if you could step onto it */
.block { position: relative; border-radius: 14px; background: var(--ink); padding: 0 0 14px; }
.block::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; border-radius: 0 0 14px 14px; background: linear-gradient(90deg, var(--grass-dark), var(--grass) 60%, var(--grass-dark)); }
.block img { border-radius: 14px 14px 0 0; aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.block .noshot { aspect-ratio: 16 / 10; border-radius: 14px 14px 0 0; background: var(--sky-deep); display: grid; place-items: center; font: 800 clamp(64px, 10vw, 140px) var(--display); color: var(--paper); }
.block.soon::after { background: linear-gradient(90deg, #5a6b78, #7c8d99 60%, #5a6b78); }
.block.beta::after { background: linear-gradient(90deg, var(--yellow-dark), var(--yellow) 60%, var(--yellow-dark)); }

/* ---------- the worlds ---------- */
.worlds { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px 24px; }
.card { text-decoration: none; display: block; }
.card .block { transition: transform 0.12s; }
.card:hover .block, .card:focus-visible .block { transform: translateY(-4px); }
.card h3 { font-size: 24px; font-weight: 800; margin: 14px 0 4px; }
.card p { margin: 0; color: var(--ink-soft); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding: 0; list-style: none; }
.tags li { font-size: 14px; background: var(--paper); border-radius: 6px; padding: 2px 8px; }
.status { position: absolute; top: 12px; left: 12px; font: 700 14px var(--body); background: var(--paper); border-radius: 6px; padding: 3px 9px; }
.status.live { background: var(--grass); color: #fff; }
.status.beta { background: var(--yellow); }

/* ---------- a world's own page ---------- */
.world { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); margin-top: 12px; }
.world h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 800; }
.world .desc { white-space: pre-line; max-width: 62ch; }
.back { display: inline-block; margin: 8px 0 18px; font-weight: 700; color: var(--ink-soft); }

/* ---------- my stuff ---------- */
.tabs { display: flex; gap: 6px; margin: 8px 0 24px; flex-wrap: wrap; }
.tabs button { font: 700 16px var(--body); color: var(--ink-soft); background: transparent; border: 0; border-radius: 8px; padding: 8px 14px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.things { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.thing { text-align: left; font: inherit; color: inherit; background: var(--paper); border: 0; border-radius: 12px; padding: 10px; cursor: pointer; box-shadow: 0 5px 0 var(--sky-deep); }
.thing:hover { box-shadow: 0 5px 0 var(--grass); }
.thing .pic { aspect-ratio: 1; border-radius: 8px; background: var(--sky-deep); display: grid; place-items: center; overflow: hidden; font: 800 40px var(--display); color: var(--ink-soft); }
.thing .pic img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.thing b { display: block; margin-top: 8px; font-size: 16px; line-height: 1.25; }
.thing small { color: var(--ink-soft); }
.empty { background: var(--paper); border-radius: 12px; padding: 28px; max-width: 60ch; }
.empty h3 { font-size: 26px; margin-bottom: 8px; }

/* the detail sheet (a dialog) */
dialog.sheet { border: 0; border-radius: 16px; padding: 0; width: min(760px, calc(100vw - 32px)); background: var(--paper); color: var(--ink); }
dialog.sheet::backdrop { background: rgba(20, 40, 60, 0.55); }
.sheet .inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; padding: 22px; }
.sheet model-viewer, .sheet .big { width: 100%; aspect-ratio: 1; border-radius: 12px; background: var(--sky-deep); }
.sheet .big { object-fit: contain; image-rendering: pixelated; }
.sheet h3 { font-size: 30px; margin-bottom: 6px; }
.sheet dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 14px 0; font-size: 15px; }
.sheet dt { color: var(--ink-soft); }
.sheet dd { margin: 0; overflow-wrap: anywhere; }
.sheet .close { font: 700 15px var(--body); background: var(--sky-deep); border: 0; border-radius: 8px; padding: 8px 14px; cursor: pointer; }

/* ---------- market ---------- */
.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.offer { background: var(--paper); border-radius: 12px; padding: 16px; box-shadow: 0 5px 0 var(--sky-deep); }
.offer h3 { font-size: 20px; margin-bottom: 6px; }
.offer .price { font: 800 22px var(--display); margin: 10px 0; }
.offer a { font-weight: 700; }

.note { color: var(--ink-soft); }
.err { background: #F6D9D5; border-radius: 10px; padding: 14px 16px; max-width: 70ch; }
.foot { padding: 28px var(--gutter) 40px; color: var(--ink-soft); font-size: 15px; }
.foot p { max-width: 70ch; margin: 0; }

@media (max-width: 760px) {
  .hero, .world, .sheet .inner { grid-template-columns: 1fr; }
  .hero .shot { order: 0; }
  .bar { flex-wrap: wrap; gap: 10px; }
  .bar nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .bar nav::-webkit-scrollbar { display: none; }
  .bar nav a { white-space: nowrap; flex: 0 0 auto; padding: 7px 10px; font-size: 15px; }   /* one row on a phone, never "My / stuff" (Snassy 11-11); more than fits scrolls sideways */
  .who { max-width: 52vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 8px 12px; font-size: 14px; }
  .mark span { font-size: 17px; }
  .card.manage { padding: 14px 12px; } .card.manage label { flex-wrap: wrap; }
  main { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* your goblox ID, to copy and send for an invite */
.idbox { margin: 18px 0 8px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(0, 0, 0, 0.08); }
.idbox > div { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.idbox code { font-size: 14px; word-break: break-all; padding: 4px 8px; border-radius: 8px; background: rgba(0, 0, 0, 0.06); }
.idbox p { margin: 10px 0 0; }
/* manage: one card per world, its members and admins */
.card.manage { display: block; margin: 14px 0; padding: 16px; }
.card.manage h4 { margin: 14px 0 6px; }
.card.manage label { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.card.manage select, .card.manage input { font: inherit; padding: 6px 8px; border-radius: 8px; border: 1px solid rgba(0, 0, 0, 0.2); }
.card.manage input { flex: 1; min-width: 0; }
.card.manage form { display: flex; gap: 8px; margin-top: 6px; }
.card.manage button { font: inherit; padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(0, 0, 0, 0.2); background: #fff; color: #1b1b1b; white-space: nowrap; cursor: pointer; }
body.wog .card.manage button { background: var(--yellow); color: #2A1A06; border: 0; font-weight: 700; box-shadow: 0 3px 0 var(--yellow-dark); }   /* (the WoG theme's light ink on a white button: a blank button on Manage - Snassy's phone 11-11) */
body.wog .card.manage select, body.wog .card.manage input { background: rgba(7,54,64,.85); color: var(--ink); border-color: rgba(217,164,65,.5); }
.card.manage form { flex-wrap: wrap; } .card.manage form input { flex: 1 1 180px; }
.ppl { list-style: none; padding: 0; margin: 0; }
.ppl li { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
.ppl code { font-size: 12px; word-break: break-all; }
/* characters: the one you play as */
.thing.chosen { outline: 3px solid var(--grass); outline-offset: 2px; }
.thing .pic-btn { background: none; border: 0; padding: 0; cursor: pointer; display: block; width: 100%; }
.thing .who { margin: 8px 0 0; }

/* ======================= WoG mode: "The Goblins Are At It Again!" (app.ts pageWog) =======================
   lagoon, reef, brass, rift and hibiscus; Bungee for the goblins' signwriting, Rubik to read; the one bold thing is the
   brass sign bolted over the hero; the gyro is the only thing that moves */
body.wog-landing {
  --lagoon: #0B4F5C; --lagoon-deep: #073640; --reef: #3FD0C9; --brass: #D9A441; --brass-dark: #8A5E1C; --bone: #FFF6E3; --wink: #10262B;
  --wdisplay: 'Bungee', 'Bricolage Grotesque', sans-serif; --wbody: 'Rubik', 'Atkinson Hyperlegible', sans-serif;
  background: var(--lagoon-deep); color: var(--bone); font-family: var(--wbody); overflow-x: hidden;
}
body.wog-landing .bar { position: absolute; z-index: 5; top: 0; left: 0; right: 0; color: var(--bone); }
body.wog-landing .bar .mark span { font: 400 20px/1 var(--wdisplay); text-shadow: 0 2px 0 rgba(0,0,0,.45); }
body.wog-landing .bar nav a { color: var(--bone); text-shadow: 0 1px 3px rgba(0,0,0,.6); }
body.wog-landing .bar nav a:hover { background: rgba(7,54,64,.5); color: var(--bone); }
body.wog-landing .who { background: rgba(7,54,64,.6); color: var(--bone); border-color: rgba(255,246,227,.55); }
body.wog-landing #app { max-width: none; padding: 0; margin: 0; }
body.wog-landing .foot { background: var(--lagoon-deep); color: var(--bone); opacity: .8; border-top: 1px solid rgba(255,246,227,.12); }
body.wog-landing :focus-visible { outline-color: var(--reef); }
.wog-hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; overflow: visible; }
.wog-hero picture, .wog-hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.wog-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,54,64,.45) 0%, rgba(7,54,64,0) 22%, rgba(7,54,64,0) 55%, rgba(7,54,64,.92) 100%); pointer-events: none; }
.wog-hero-inner { position: relative; z-index: 2; width: 100%; padding: 96px var(--gutter) clamp(28px, 6vw, 64px); }
.wog-hero .sign { display: inline-block; max-width: 640px; transform: rotate(-2.2deg); transform-origin: left bottom; padding: 22px 30px 24px; border-radius: 10px; position: relative;
  background: linear-gradient(160deg, #F2C66A 0%, var(--brass) 38%, #B67A28 100%); color: #2A1A06; box-shadow: 0 4px 0 var(--brass-dark), 0 18px 40px rgba(0,0,0,.45); }
.wog-hero .sign::before, .wog-hero .sign::after { content: ''; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff4cf, #8A5E1C 70%); top: 12px; }
.wog-hero .sign::before { left: 12px; } .wog-hero .sign::after { right: 12px; }
.wog-hero h1 { margin: 0; font: 400 clamp(30px, 6.2vw, 64px)/1.02 var(--wdisplay); letter-spacing: -.01em; color: #2A1A06; text-shadow: 0 2px 0 rgba(255,240,200,.55); }
.wog-hero .lede { max-width: 34em; margin: 26px 0 22px; font-size: clamp(17px, 2.2vw, 20px); text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 0 6px rgba(0,0,0,.6); color: var(--bone); background: rgba(7,30,36,.68); padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255,246,227,.18); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }   /* readable over the busy art (a player on X) */
body.wog-landing .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
body.wog-landing .btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 12px; font: 700 17px/1 var(--wbody); text-decoration: none; border: 0; cursor: pointer; }
body.wog-landing .btn.play { background: var(--reef); color: var(--wink); box-shadow: 0 4px 0 #1D8C86; }
body.wog-landing .btn.play:hover { background: #63DDD7; }
body.wog-landing .btn.play:active { transform: translateY(2px); box-shadow: 0 2px 0 #1D8C86; }
body.wog-landing .btn.quiet { background: rgba(7,54,64,.55); color: var(--bone); border: 1.5px solid rgba(255,246,227,.55); }
body.wog-landing .btn.sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
body.wog-landing .note { color: var(--bone); font-size: 14px; }
body.wog-landing .wog-hero .way .note { display: inline-block; background: rgba(7,30,36,.68); padding: 6px 12px; border-radius: 10px; text-shadow: 0 1px 2px rgba(0,0,0,.9); margin: 4px 0; }   /* the small lines under the countdown, readable over the art too */
body.wog-landing .wog-hero .way .note a { color: #7FE0E6; }
.wog-hero .gyro { position: absolute; z-index: 3; right: clamp(-40px, 2vw, 40px); bottom: -70px; width: clamp(170px, 24vw, 300px); filter: drop-shadow(0 18px 18px rgba(0,0,0,.4)); animation: wogbob 5s ease-in-out infinite; pointer-events: none; }
@keyframes wogbob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
@media (prefers-reduced-motion: reduce) { .wog-hero .gyro { animation: none; } }
body.wog-landing section { padding: clamp(56px, 8vw, 104px) var(--gutter); }
body.wog-landing .wrap { max-width: 1180px; margin: 0 auto; }
body.wog-landing h2 { margin: 0 0 12px; font: 400 clamp(26px, 4vw, 40px)/1.1 var(--wdisplay); color: var(--bone); }
body.wog-landing .intro { max-width: 36em; margin: 0 0 36px; opacity: .92; }
.wog-sides { background: var(--lagoon); }
.wog-sides .side-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2.4vw, 28px); }
.wog-sides .side { position: relative; border-radius: 18px; overflow: hidden; min-height: 560px; display: flex; align-items: flex-end; }
.wog-sides .side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.wog-sides .side::after { content: ''; position: absolute; inset: 0; }
.wog-sides .side.light::after { background: linear-gradient(180deg, rgba(11,79,92,0) 45%, rgba(9,60,70,.95) 100%); }
.wog-sides .side.shadow::after { background: linear-gradient(180deg, rgba(40,10,40,0) 45%, rgba(38,12,44,.96) 100%); }
.wog-sides .side-text { position: relative; z-index: 2; padding: 26px 26px 28px; }
.wog-sides h3 { margin: 0 0 6px; font: 400 clamp(24px, 3vw, 32px)/1.1 var(--wdisplay); }
.wog-sides .side.light h3 { color: #BFF7F3; } .wog-sides .side.shadow h3 { color: #FFB3BF; }
.wog-sides .side p { margin: 0; max-width: 28em; }
.wog-sides .side .where { margin-top: 10px; font-size: 14px; opacity: .85; }
.wog-lore { background: linear-gradient(180deg, rgba(11,79,92,.9) 0%, rgba(7,54,64,.92) 100%), url(/img/wog/pattern.webp) center / 900px auto repeat; }
.wog-lore .lore-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.wog-lore img { border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.wog-lore p { margin: 0 0 14px; max-width: 32em; }
.wog-isle { background: var(--lagoon-deep); }
.wog-isle .isle-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.wog-isle img { border-radius: 50%; box-shadow: 0 0 0 6px rgba(217,164,65,.35), 0 24px 60px rgba(0,0,0,.5); }
.wog-isle ul { margin: 0; padding-left: 1.1em; } .wog-isle li { margin: 6px 0; }
body.wog-landing section.wog-critters { padding: 0; position: relative; }
.wog-critters img { width: 100%; height: clamp(320px, 52vw, 640px); object-fit: cover; }
.wog-critters .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 80px var(--gutter) clamp(24px, 4vw, 44px); background: linear-gradient(180deg, rgba(7,54,64,0), rgba(7,54,64,.92)); }
.wog-critters .cap p { margin: 0; max-width: 34em; font-size: clamp(17px, 2vw, 20px); }
.wog-join { background: var(--lagoon-deep) url(/img/wog/pattern.webp) center / 900px auto repeat; }
.wog-join .steps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.wog-join .steps li { counter-increment: step; position: relative; padding: 22px 20px 20px 70px; border-radius: 14px; background: rgba(7,54,64,.75); border: 1px solid rgba(63,208,201,.35); }
.wog-join .steps li::before { content: counter(step); position: absolute; left: 18px; top: 18px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 400 18px/1 var(--wdisplay); color: var(--wink); background: var(--brass); }
.wog-join .steps b { display: block; margin-bottom: 4px; }
.wog-id { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 22px; padding: 14px 16px; border-radius: 12px; background: rgba(7,54,64,.8); border: 1px solid rgba(217,164,65,.5); }
.wog-id span { font-weight: 700; } .wog-id code { word-break: break-all; font-size: 14px; }
@media (max-width: 760px) {
  .wog-hero { min-height: 88vh; } .wog-hero picture img { object-position: 70% 30%; }
  .wog-hero .sign { padding: 18px 20px 20px; } .wog-hero .gyro { bottom: -50px; right: -18px; }
  .wog-sides .side-grid, .wog-lore .lore-grid, .wog-isle .isle-grid, .wog-join .steps { grid-template-columns: 1fr; }
  .wog-sides .side { min-height: 480px; }
  body.wog-landing .bar nav a[data-nav="me"] { display: none; }
}
/* wide screens: the heroine at the art's left edge stays in view, and the goblins' sign hangs to her right (Mats) */
@media (min-width: 900px) {
  .wog-hero picture img { object-position: 22% 40%; }
  .wog-hero-inner { padding-left: clamp(220px, 30vw, 520px); }
}
@media (min-width: 900px) and (max-width: 1199px) { .wog-hero-inner { padding-left: 42vw; } .wog-hero .sign { max-width: 520px; } }

/* WoG mode's other pages (Characters, My stuff): the same lagoon, brass and signwriting as the landing - the portal's own
   colours redefined, so its pieces (tabs, things, sheets, empty boxes) follow; the workshop art as a banner behind the bar */
body.wog {
  --sky: #073640; --sky-deep: #0B4F5C; --paper: #0E5D6B; --ink: #FFF6E3; --ink-soft: #BFDCD8;
  --yellow: #D9A441; --yellow-dark: #8A5E1C; --grass: #3FD0C9; --grass-dark: #1D8C86;
  --display: 'Bungee', 'Bricolage Grotesque', sans-serif; --body: 'Rubik', 'Atkinson Hyperlegible', sans-serif;
}
body.wog:not(.wog-landing) { background: var(--sky) url(/img/wog/pattern.webp) center top / 900px auto repeat; color: var(--ink); }
body.wog:not(.wog-landing) .bar { position: relative; min-height: 150px; align-items: flex-start; padding-top: 18px; color: var(--ink);
  background: linear-gradient(180deg, rgba(7,54,64,.25), rgba(7,54,64,.95)), url(/img/wog/workshop-sm.webp) center 38% / cover no-repeat; }
body.wog .bar .mark span { font: 400 20px/1 var(--display); text-shadow: 0 2px 0 rgba(0,0,0,.45); }
body.wog .bar nav a { color: var(--ink); text-shadow: 0 1px 3px rgba(0,0,0,.6); }
body.wog .bar nav a:hover, body.wog .bar nav a[aria-current="page"] { background: rgba(7,54,64,.7); color: var(--ink); }
body.wog h2 { font: 400 clamp(26px, 4vw, 38px)/1.1 var(--display); }
body.wog .empty h3, body.wog .sheet h3 { font-family: var(--display); font-weight: 400; }
body.wog .thing, body.wog .empty, body.wog dialog.sheet { border: 1px solid rgba(217,164,65,.35); }
body.wog .thing { box-shadow: 0 5px 0 rgba(0,0,0,.35); }
body.wog .thing:hover { box-shadow: 0 5px 0 var(--grass); }
body.wog .thing.chosen { outline: 3px solid var(--yellow); }
body.wog:not(.wog-landing) .who { color: #2A1A06; }   /* (on the landing it is glass with light text: line 157) */
body.wog .who.signed { color: var(--ink); background: rgba(7,54,64,.7); box-shadow: 0 4px 0 rgba(0,0,0,.35); }
body.wog .tabs button[aria-selected="true"] { background: var(--yellow); color: #2A1A06; }
body.wog input { background: #08414C; color: var(--ink); border: 1px solid rgba(255,246,227,.35); border-radius: 8px; padding: 8px; }
body.wog:not(.wog-landing) .foot { color: var(--ink-soft); }
html:has(body.wog) { background: #073640; }
/* the way in (pageWog): the application form, a status line, the doors' countdown */
body.wog-landing .way { max-width: 560px; }
body.wog-landing .apply { display: grid; gap: 12px; padding: 18px; border-radius: 14px; background: rgba(7,54,64,.82); border: 1px solid rgba(217,164,65,.5); }
body.wog-landing .apply label { display: grid; gap: 6px; font-weight: 500; }
body.wog-landing .apply input, body.wog-landing .apply textarea { font: 400 16px/1.4 var(--wbody); color: var(--bone); background: #052a32; border: 1px solid rgba(255,246,227,.35); border-radius: 10px; padding: 10px 12px; }
body.wog-landing .status { position: static; padding: 14px 18px; border-radius: 12px; background: rgba(7,54,64,.82); border: 1px solid rgba(63,208,201,.45); margin-bottom: 12px; }
body.wog-landing .countdown { display: flex; gap: 10px; margin: 6px 0 12px; }
body.wog-landing .countdown span { display: grid; justify-items: center; min-width: 74px; padding: 10px 8px; border-radius: 12px; font-size: 13px;
  background: linear-gradient(160deg, #F2C66A 0%, var(--brass) 45%, #B67A28 100%); color: #2A1A06; box-shadow: 0 4px 0 var(--brass-dark); }
body.wog-landing .countdown b { font: 400 clamp(26px, 5vw, 40px)/1 var(--wdisplay); }
.card.manage.app-pending { border-left: 4px solid #D9A441; } .card.manage.app-approved { border-left: 4px solid #3FD0C9; } .card.manage.app-denied { opacity: .7; }
/* What's new (app.ts news(), news.json): the release notes under the hero */
.wog-news { background: var(--lagoon); padding-bottom: 32px; }
.wog-news h2 { margin-top: 40px; }
.wog-news .news-update { max-width: 760px; margin: 0 0 12px; padding: 14px 18px; border-radius: 14px; background: rgba(0,0,0,.18); }
.wog-news summary { cursor: pointer; font-weight: 700; font-size: 18px; }
.wog-news ul { margin: 10px 0 0; padding-left: 22px; line-height: 1.55; }
.wog-news li { margin: 4px 0; }
/* a character NFT's games and things (app.ts characterPanel: Sneed Hub's CharacterPanel) */
.sheet .charpanel { padding: 0 22px 22px; }
.sheet .charpanel:empty { display: none; }
.cp-game { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--sky-deep); }
.cp-game h4 { margin: 0 0 10px; font-size: 16px; } .cp-game h4 a { font-size: 12px; font-weight: 600; margin-left: 6px; }
.cp-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.cp-facts > div { padding: 8px 10px; border-radius: 8px; background: var(--paper); }
.cp-facts small, .cp-game > small { display: block; font-size: 11px; opacity: .7; } .cp-facts b { font-size: 15px; word-break: break-word; }
.cp-game details { margin-top: 10px; } .cp-game summary { cursor: pointer; font-size: 13px; font-weight: 700; }
.cp-rows > div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px solid rgba(0,0,0,.08); font-size: 13px; }
.cp-look { margin-top: 10px; } .cp-look model-viewer { width: 100%; aspect-ratio: 4 / 3; max-height: 320px; border-radius: 10px; background: var(--paper); }
.cp-things { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; margin: 6px 0 10px; }
.cp-things > div { padding: 6px; border-radius: 8px; background: var(--paper); font-size: 11px; overflow: hidden; }
.cp-things .pic { position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.cp-things .pic img { width: 80%; height: 80%; object-fit: contain; image-rendering: pixelated; }
.cp-things .pic i { position: absolute; top: 2px; right: 4px; font-style: normal; font-weight: 700; font-size: 10px; }
.cp-things span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { .sheet .inner { grid-template-columns: 1fr; } }
/* the game's X account under the way in (Snassy 11-11: promote it) */
.wog-follow { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 14px; border-radius: 999px; background: rgba(0, 0, 0, 0.55); color: #fff; text-decoration: none; font-size: 15px; border: 1px solid rgba(255, 255, 255, 0.35); }
.wog-follow:hover, .wog-follow:focus-visible { background: rgba(0, 0, 0, 0.75); border-color: #fff; }

/* the Canisters page (Snassy 11-10): every canister, its cycles, a top-up form; the wall of gifts */
.canisters .lede { max-width: 70ch; }
.canister-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 16px; }
.card.canister { display: block; padding: 16px; }
.card.canister h3 { margin: 0 0 6px; }
.card.canister .cid { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; }
.card.canister .cid code { word-break: break-all; }
.card.canister .cyc { font-weight: 700; color: #3FD0C9; }
.card.canister .cyc.low { color: #FF8A6A; }
.card.canister form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.card.canister form input { font: inherit; padding: 7px 9px; border-radius: 8px; border: 1px solid rgba(217,164,65,.5); background: rgba(7,54,64,.85); color: var(--ink); min-width: 0; }
.card.canister form input[name="amt"] { flex: 0 1 90px; } .card.canister form input[name="msg"] { flex: 1 1 180px; }
.card.canister form button, .card.canister [data-finish] { font: 700 15px var(--body); padding: 7px 14px; border: 0; border-radius: 8px; background: var(--yellow); color: #2A1A06; cursor: pointer; box-shadow: 0 3px 0 var(--yellow-dark); }
.card.canister.donate { margin-top: 14px; border-left: 4px solid var(--yellow); }
.card.gift { display: block; padding: 12px 14px; margin: 10px 0; }
.card.gift p { margin: 4px 0; overflow-wrap: anywhere; }
.foot a { color: inherit; }
.card.canister.fund code { word-break: break-all; font-size: 13px; }
.card.canister.fund button { font: 700 13px var(--body); padding: 3px 10px; margin-left: 6px; border: 0; border-radius: 6px; background: var(--yellow); color: #2A1A06; cursor: pointer; }
[data-me-icp] [data-signin] { font: 700 15px var(--body); padding: 6px 14px; border: 0; border-radius: 8px; background: var(--yellow); color: #2A1A06; cursor: pointer; box-shadow: 0 3px 0 var(--yellow-dark); margin-right: 6px; }

/* the game's X and Discord: icons in the header beside Sign in (Snassy 11-11) */
.socials { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.socials:empty { display: none; }
.socials a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.socials a:hover, .socials a:focus-visible { background: rgba(7,54,64,.6); }
body.wog .socials a { color: var(--ink); filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.socials:not(:empty) + .who { margin-left: 8px; }
@media (max-width: 760px) { .socials a { width: 34px; height: 34px; } }
@media (max-width: 760px) { .socials { gap: 0; } .socials a { width: 30px; height: 30px; } .socials svg { width: 17px; height: 17px; } .mark span { font-size: 15px !important; } .bar .who { padding: 7px 10px; font-size: 13px; } .socials:not(:empty) + .who { margin-left: 4px; } }   /* one row on a phone: the name, the two icons, Sign in */
/* what players say (Testimonials.ashx): their portraits, their words, their stars */
.wog-say { padding: 48px 0; }
.wog-say h2 { text-align: center; margin-bottom: 24px; }
.say-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.say { margin: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 20px 18px; border-radius: 14px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); animation: sayIn .6s ease; }
.say img { width: 72px; height: 92px; object-fit: cover; object-position: 50% 15%; border-radius: 12px; background: #1a1d24; }
.say blockquote { margin: 0; font-size: 1.05rem; line-height: 1.45; font-style: italic; }
.say blockquote::before { content: '\201C'; } .say blockquote::after { content: '\201D'; }
.say figcaption { font-size: .9rem; opacity: .85; } .say .stars { color: #f2c94c; letter-spacing: 1px; }
@keyframes sayIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }


/* the island right now (the WoG landing) and the who / lives / life pages - space kept from the first paint, so nothing jumps */
.wog-live { padding: 40px 0 16px; }
.wog-live h2 { margin: 0 0 16px; }
.live-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 20px; }
.live-num { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 86px; border-radius: 14px; background: rgba(255, 210, 122, 0.08); border: 1px solid rgba(255, 210, 122, 0.22); text-decoration: none; color: inherit; }
.live-num b { font-size: 32px; line-height: 1.1; color: #ffd27a; min-width: 2ch; text-align: center; }
.live-num span { font-size: 14px; opacity: .8; }
a.live-num[href]:hover { background: rgba(255, 210, 122, 0.16); }
.live-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .live-grid { grid-template-columns: 1fr; } }
.live-grid h3 { margin: 0 0 10px; font-size: 18px; } .live-grid h3 a { font-size: 14px; margin-left: 8px; }
.faces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; min-height: 196px; }
.face { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: inherit; font-size: 12px; }
.face img, .face.ph { width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, 0.07); object-fit: cover; }
.face span { margin-top: 4px; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-feed ul { list-style: none; margin: 0; padding: 0; min-height: 196px; }
.live-feed li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); min-height: 20px; }
.live-feed li.ph { background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)); border-radius: 6px; margin-bottom: 6px; border: 0; }
.live-feed time { opacity: .6; font-size: 13px; white-space: nowrap; }
.who-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin-top: 16px; }
.who-card { display: flex; flex-direction: column; align-items: center; min-height: 170px; padding: 14px 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); text-decoration: none; color: inherit; text-align: center; }
.who-card.ph { background: rgba(255, 255, 255, 0.04); }
.who-card img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: rgba(255, 255, 255, 0.07); margin-bottom: 8px; }
.who-card span { font-size: 13px; opacity: .8; } .who-card.on img { box-shadow: 0 0 0 3px #7ee07e; }
.wog-life { display: flex; flex-direction: column; height: calc(100vh - 70px); }
.life-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 16px; } .life-bar .btn { margin-left: auto; }
.life-frame { flex: 1; width: 100%; border: 0; min-height: 520px; }

/* the players page: sort by level or name (Snassy 11-19) */
.who-sort { margin: 0 0 12px; font-size: 14px; }
.who-sort .btn { padding: 4px 12px; font-size: 13px; opacity: .65; }
.who-sort .btn.on { opacity: 1; outline: 2px solid currentColor; }
