/* Shulkerboxes site. One stylesheet for every page, built on the Diorama language:
   warm paper, big Bricolage type, white rounded cards, chunky edged buttons, and a sky
   stage holding the live 3D island. Every colour is a token, so the four themes apply everywhere. */

/* ================================================================ tokens */
:root {
  color-scheme: light;
  --bg: #f5f4ef;
  --surface: #ffffff;
  --surface-2: #f0eee7;
  --surface-3: #fcfbf8;
  --ink: #17191c;
  --ink-2: #454a51;
  --ink-3: #676c73;
  --line: #e7e4dc;
  --line-2: #d8d4c9;
  --line-3: #c4bfb2;
  --accent: #267a3b;
  --accent-hover: #21703a;
  --accent-edge: #185a2a;
  --accent-soft: #e5f2e1;
  --accent-ink: #267a3b;
  --on-accent: #ffffff;
  --focus: #2b62d9;
  --focus-ring: rgb(43 98 217 / .16);

  --danger: #b3261e;
  --danger-soft: #fdecea;
  --danger-edge: #8c1d17;
  --warn-ink: #8a5800;  --warn-soft: #fff0d3;  --warn-dot: #d48a00;
  --ok-ink: #22703a;    --ok-soft: #e5f2e1;    --ok-dot: #2f9a49;
  --dusk-ink: #5646b3;  --dusk-soft: #eeebfb;  --dusk-dot: #7a68e0;
  --night-ink: #34409a; --night-soft: #e6e9f8; --night-dot: #5d6bd6;
  --muted-dot: #8a8f96;
  --butter-ink: #7a5a00; --butter-soft: #fff3c9;
  --peach-ink: #9a4424;  --peach-soft: #fde6da;
  --sky-ink: #1f5f8a;    --sky-soft: #e1f0fa;

  --sky-top: #9fd3f3;
  --sky-bottom: #eaf5fa;
  --halo: .85;
  --toast-bg: #17191c;
  --toast-ink: #ffffff;
  --grass: #86c25a; --grass-2: #74b34f; --dirt: #a8744f; --dirt-2: #8f6243; --stone: #b0b2bc;

  --font-display: "Bricolage Grotesque", ui-rounded, system-ui, sans-serif;
  --font-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-xl: 36px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 12px;
  --shadow-card: 0 1px 2px rgba(23, 25, 28, .04), 0 12px 32px -18px rgba(38, 52, 30, .18);
  --shadow-stage: inset 0 0 0 1px rgba(20, 30, 40, .05), 0 30px 60px -40px rgba(40, 70, 110, .35);
  --shadow-pop: 0 18px 44px -18px rgba(20, 24, 30, .35), 0 2px 6px rgba(20, 24, 30, .06);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: 32px;
  --maxw: 1600px;
}
:root[data-theme="grass"] {
  --bg: #eef3e5; --surface-2: #e6ecdb; --surface-3: #fbfdf7; --line: #dde5d0; --line-2: #cbd6ba; --line-3: #b3c19f;
  --accent: #2b7a32; --accent-hover: #256e2c; --accent-edge: #1b5621; --accent-soft: #dcefd1; --accent-ink: #256e2c;
  --sky-top: #a9e0c4; --sky-bottom: #eff7e6;
  --shadow-card: 0 1px 2px rgba(23, 35, 20, .05), 0 12px 32px -18px rgba(40, 80, 30, .22);
}
:root[data-theme="sunset"] {
  --bg: #f8efe7; --surface: #fffdfb; --surface-2: #f4e7dc; --surface-3: #fffaf6; --line: #eddccd; --line-2: #e0c9b6; --line-3: #cfb098;
  --accent: #b1482a; --accent-hover: #9f3f24; --accent-edge: #7a2f19; --accent-soft: #fbe1d4; --accent-ink: #9f3f24;
  --sky-top: #f6b99c; --sky-bottom: #fde9d5;
  --shadow-card: 0 1px 2px rgba(60, 30, 20, .05), 0 12px 32px -18px rgba(120, 60, 30, .22);
}
:root[data-theme="night"] {
  color-scheme: dark;
  --bg: #0e1220; --surface: #161b2c; --surface-2: #1f2539; --surface-3: #121727; --ink: #eef0f7; --ink-2: #c5cad8; --ink-3: #9ca3b5;
  --line: #262d44; --line-2: #343c58; --line-3: #4a537a;
  --accent: #2a7f3f; --accent-hover: #2f8a45; --accent-edge: #17512a; --accent-soft: #1b3325; --accent-ink: #86d496;
  --focus: #7ea6ff; --focus-ring: rgb(126 166 255 / .22);
  --danger: #ff8f86; --danger-soft: #3a1d22; --danger-edge: #6d2a2a;
  --warn-ink: #f4c46e; --warn-soft: #362b14; --warn-dot: #e3a33a;
  --ok-ink: #86d496; --ok-soft: #1b3325; --ok-dot: #4cc26a;
  --dusk-ink: #c7bcff; --dusk-soft: #2a2550; --dusk-dot: #9a8cf0;
  --night-ink: #b3bcff; --night-soft: #222a4e; --night-dot: #8d98f0;
  --muted-dot: #7c8397;
  --butter-ink: #f1d27a; --butter-soft: #33291a; --peach-ink: #f5b196; --peach-soft: #3a2420; --sky-ink: #9fd0f2; --sky-soft: #1b2b40;
  --sky-top: #2a3470; --sky-bottom: #56598f; --halo: .2;
  --toast-bg: #eef0f7; --toast-ink: #121626;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -20px rgba(0, 0, 0, .6);
  --shadow-stage: inset 0 0 0 1px rgba(255, 255, 255, .05), 0 30px 60px -40px rgba(0, 0, 0, .8);
  --shadow-pop: 0 18px 44px -18px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .3);
}

/* ================================================================ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 20px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); min-height: 100vh;
  font: 400 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .4s var(--ease), color .4s var(--ease);
  overflow-x: clip;
}
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus, main:focus { outline: none; }
button, input, select, textarea { font: inherit; color: inherit; }
b, strong { font-weight: 600; }
a { color: var(--accent-ink); }
img, svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; z-index: 80; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.mono { font-family: var(--font-mono); }

kbd { font: 500 .88em var(--font-mono); background: var(--surface-2); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; white-space: nowrap; color: var(--ink); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

:where([data-icon]) { display: inline-grid; place-items: center; width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
:where([data-icon]) > svg { width: 100%; height: 100%; }

/* ================================================================ type */
.eyebrow { font: 600 13px/1.2 var(--font-body); letter-spacing: .09em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 18px; }
.display {
  font: 700 clamp(40px, 3.9vw, 58px)/1.02 var(--font-display); letter-spacing: -.035em;
  font-variation-settings: "opsz" 96; text-wrap: balance; margin-bottom: 18px;
}

.lede { font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 34em; text-wrap: pretty; }

.small-print { font-size: 14px; line-height: 1.55; color: var(--ink-3); }
.small-print a, .text-link { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.text-link:hover, .small-print a:hover { text-decoration-thickness: 2.5px; }
.text-link .i { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-left: 2px; }

/* ================================================================ top bar */
.topbar { position: relative; z-index: 30; }
.topbar-row { display: flex; align-items: center; gap: 14px; height: 76px; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 21px/1 var(--font-display); letter-spacing: -.02em; flex: none; }
.brand-mark { width: 30px; height: 30px; filter: drop-shadow(0 3px 4px rgba(60, 70, 40, .18)); }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* Theme swatches: four little sky squares */
.swatches { display: inline-flex; gap: 6px; padding: 5px; border-radius: 14px; background: var(--surface-2); }
.swatch { width: 26px; height: 26px; border-radius: 9px; border: 0; padding: 0; cursor: pointer; position: relative; overflow: hidden; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); transition: transform .15s var(--ease); }
.swatch::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9px; background: linear-gradient(180deg, var(--g1) 0 3px, var(--g2) 3px); }
.swatch[data-theme-pick="daylight"] { background: linear-gradient(180deg, #9fd3f3, #eaf5fa); --g1: #86c25a; --g2: #a8744f; }
.swatch[data-theme-pick="grass"] { background: linear-gradient(180deg, #a9e0c4, #eff7e6); --g1: #7fcf52; --g2: #8f6243; }
.swatch[data-theme-pick="sunset"] { background: linear-gradient(180deg, #f6b99c, #fde9d5); --g1: #9cbf62; --g2: #c4865a; }
.swatch[data-theme-pick="night"] { background: linear-gradient(180deg, #0b0f26, #3a4280); --g1: #5f9e62; --g2: #6a4a35; }
.swatch:hover { transform: translateY(-1px); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }

/* Signed-in header */

/* Account menu */

.pop {
  position: absolute; right: 0; top: calc(100% + 10px); width: 300px; z-index: 45; padding: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-pop);
  animation: rise .25s var(--ease) both;
}
.pop .who { display: grid; gap: 2px; margin-bottom: 10px; }
.pop .who b { font: 700 17px/1.2 var(--font-display); }
.pop .who span { color: var(--ink-3); font-size: 14px; }
.pop p.note { font-size: 14px; color: var(--ink-2); margin-bottom: 14px; }
.pop .row { display: flex; gap: 8px; justify-content: flex-end; }

/* ================================================================ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 18px; border-radius: 13px; border: 0; cursor: pointer; text-decoration: none;
  font: 600 15px/1 var(--font-body); white-space: nowrap; position: relative;
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn .i { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 0 var(--accent-edge), inset 0 1px 0 rgb(255 255 255 / .2); margin-bottom: 4px; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent-edge), inset 0 1px 0 rgb(255 255 255 / .2); }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line-2); box-shadow: 0 4px 0 var(--line-2); margin-bottom: 4px; }
.btn-secondary:hover { background: var(--surface-3); border-color: var(--line-3); }
.btn-secondary:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--line-2); }

.btn-block { width: 100%; }
.btn:disabled { cursor: not-allowed; opacity: .5; }
.btn-primary:disabled { opacity: .55; }
.btn[aria-busy="true"] { cursor: progress; }

@keyframes spin { to { transform: rotate(360deg); } }
.btn[data-copied] { background: var(--ok-soft); color: var(--ok-ink); border-color: transparent; }
.btn-primary[data-copied] { background: var(--accent-edge); color: var(--on-accent); }

/* ================================================================ cards */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card); padding: 26px 28px;
}
.panel .card, .stack > .card { margin-top: 18px; }

.card-title { font: 700 21px/1.2 var(--font-display); letter-spacing: -.02em; }

.count { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 7px; margin-left: 6px; border-radius: 99px; background: var(--surface-2); font: 600 13px/1 var(--font-body); color: var(--ink-2); vertical-align: 3px; letter-spacing: 0; }

/* ================================================================ forms */
.label { display: block; font: 600 14.5px/1.3 var(--font-body); margin-bottom: 10px; color: var(--ink); }
.label .opt { font-weight: 500; color: var(--ink-3); }

.input, input[type="text"], input[type="email"], input[type="search"], input[type="password"], input:not([type]), select, textarea {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 14px;
  border: 1.5px solid var(--line-2); background: var(--surface-3); font-size: 16px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
textarea, .textarea { height: auto; min-height: 110px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
::placeholder { color: var(--ink-3); opacity: .85; }
.input:hover, input:hover, select:hover, textarea:hover { border-color: var(--line-3); }
input:focus-visible, select:focus-visible, textarea:focus-visible, .input:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px var(--focus-ring); background: var(--surface); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.field { margin-bottom: 18px; }

.help { font-size: 14px; line-height: 1.5; color: var(--ink-3); margin-top: 10px; min-height: 0; }

.help.error { color: var(--danger); font-weight: 500; }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Checkbox */
.check { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font: 600 16px/1.3 var(--font-body); user-select: none; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }

/* Switch */
.switch { width: 54px; height: 32px; border-radius: 99px; border: 0; padding: 0; background: var(--line-2); position: relative; cursor: pointer; flex: none; transition: background-color .2s var(--ease); box-shadow: inset 0 2px 3px rgb(0 0 0 / .08); }

.switch[aria-checked="true"] { background: var(--accent); }

.switch:disabled { opacity: .45; cursor: not-allowed; }

/* Segmented control (the Diorama difficulty picker) */

fieldset.seg { border: 0; margin: 0; padding: 0; min-width: 0; }

/* Stepper and range */

.range { -webkit-appearance: none; appearance: none; flex: 1; height: 10px; border-radius: 99px; padding: 0 !important; border: 0 !important;
  background: linear-gradient(90deg, var(--accent) 0 var(--p, 50%), var(--surface-2) var(--p, 50%)) !important; box-shadow: inset 0 1px 2px rgb(0 0 0 / .08); cursor: pointer; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 8px; background: var(--surface); border: 2px solid var(--accent); box-shadow: 0 3px 0 var(--accent-edge); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 8px; background: var(--surface); border: 2px solid var(--accent); box-shadow: 0 3px 0 var(--accent-edge); }

/* ================================================================ status chip + tags */
.status {
  display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 14px 0 12px;
  border-radius: 999px; font: 600 14.5px/1 var(--font-body); white-space: nowrap;
  background: var(--surface-2); color: var(--ink-2); --tone: var(--muted-dot);
}

.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--tone, currentColor); flex: none; position: relative; }

[data-tone="green"] { --tone: var(--ok-dot); }
.status[data-tone="green"] { background: var(--ok-soft); color: var(--ok-ink); }
.status[data-tone="amber"] { background: var(--warn-soft); color: var(--warn-ink); --tone: var(--warn-dot); }
.status[data-tone="dusk"] { background: var(--dusk-soft); color: var(--dusk-ink); --tone: var(--dusk-dot); }
.status[data-tone="night"] { background: var(--night-soft); color: var(--night-ink); --tone: var(--night-dot); }
.status[data-tone="red"] { background: var(--danger-soft); color: var(--danger); --tone: var(--danger); }
[data-tone="green"] .dot::after, [data-tone="amber"] .dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--tone); opacity: 0;
  animation: ping 2.2s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(.5); opacity: .6; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
.tag { display: inline-flex; align-items: center; gap: 5px; font: 600 11.5px/1 var(--font-body); letter-spacing: .05em; text-transform: uppercase; padding: 5px 8px; border-radius: 7px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; vertical-align: 2px; }
.tag .i { width: 11px; height: 11px; }

/* Banners and notes */

.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--night-soft); color: var(--night-ink); font-size: 14.5px; line-height: 1.5; margin-top: 16px; }
.note .i { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.note[data-tone="ok"] { background: var(--ok-soft); color: var(--ok-ink); }
.note[data-tone="plain"] { background: var(--surface-2); color: var(--ink-2); }
.note a { color: inherit; font-weight: 600; }

/* ================================================================ the stage (sky + island) */
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 540px);
  gap: 48px; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) 40px; align-items: start;
}
.stage {
  position: sticky; top: 16px; height: calc(100dvh - var(--head-h, 76px) - 40px); min-height: 560px; max-height: 920px;
  border-radius: var(--r-xl); overflow: hidden; isolation: isolate; box-shadow: var(--shadow-stage);
}
body[data-chrome="app"] { --head-h: 128px; }
.stage-sky, .sky {
  position: absolute; inset: 0; z-index: -1; transition: background .6s var(--ease);
  background:
    radial-gradient(55% 48% at 50% 50%, rgb(255 255 255 / var(--halo)) 0%, rgb(255 255 255 / 0) 72%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 100%);
}
.stage-sky::after, .sky::after {
  content: ""; position: absolute; inset: 0; opacity: .06; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
.island-slot { position: absolute; inset: 0; }

.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; z-index: 2;
  background: rgb(255 255 255 / .76); color: #17191c;
  -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: 0 1px 0 rgb(255 255 255 / .6) inset, 0 6px 18px -8px rgba(20, 30, 50, .25);
  border-radius: 999px; transition: background-color .8s var(--ease), color .8s var(--ease), opacity .4s var(--ease);
  --tone: var(--ok-dot);
}
.chip .dot { background: var(--tone); }
.chip[data-tone="amber"] { --tone: #d48a00; }
.chip[data-tone="dusk"] { --tone: #7a68e0; }
.chip[data-tone="night"] { --tone: #5d6bd6; }
.chip[data-tone="neutral"] { --tone: #8a8f96; }
.chip[data-tone="green"] { --tone: #2f9a49; }
.chip-status { left: 20px; bottom: 20px; padding: 10px 16px 10px 13px; font: 600 14.5px/1 var(--font-body); }

button.chip { border: 0; cursor: pointer; font: 600 13.5px/1 var(--font-body); padding: 9px 14px 9px 11px; }
button.chip:hover { background: rgb(255 255 255 / .92); }
button.chip .i { width: 16px; height: 16px; }

[data-night="true"] .chip { background: rgb(20 24 52 / .58); color: #eef0ff; box-shadow: 0 1px 0 rgb(255 255 255 / .08) inset, 0 6px 18px -8px rgba(0, 0, 0, .5); }

[data-night="true"] .chip[data-tone="night"] { --tone: #b7c0ff; }

/* A block burst for the "it's online" moment */

@keyframes burst {
  0% { transform: translate(0, 0) rotate(0) scale(.3); opacity: 0; }
  12% { opacity: 1; }
  45% { transform: translate(var(--dx), var(--dy)) rotate(calc(var(--r) * .6)) scale(1); }
  100% { transform: translate(calc(var(--dx) * 1.3), calc(var(--dy) + 420px)) rotate(var(--r)) scale(.9); opacity: 0; }
}

/* ================================================================ panel column */
.panel { padding: 28px 0 24px; min-width: 0; outline: none; }
.view { animation: rise .5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.form-card { margin-top: 32px !important; }
.skeleton { height: 18px; border-radius: 8px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; margin-bottom: 14px; }

.skeleton.short { width: 55%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Landing */

.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; color: var(--ink-2); font-size: 15px; }
.facts li { display: flex; gap: 12px; align-items: center; }
.facts .i { width: 20px; height: 20px; color: var(--accent-ink); flex: none; }

.more { max-width: var(--maxw); margin: 0 auto; padding: 28px var(--gutter) 24px; }
.band { margin-top: 64px; }
.band:first-child { margin-top: 24px; }
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.reason { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-card); position: relative; overflow: hidden; }
.reason h3 { font: 700 26px/1.1 var(--font-display); letter-spacing: -.025em; margin: 18px 0 8px; }
.reason p { color: var(--ink-2); font-size: 16px; }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.how li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden; display: flex; flex-direction: column; }

.how h3 { font: 700 22px/1.15 var(--font-display); letter-spacing: -.02em; margin-bottom: 6px; }
.how p { color: var(--ink-2); font-size: 15.5px; }

/* Block strip: a row of grass-over-dirt blocks, used as a divider / page illustration */

/* ================================================================ dashboard */
.world-head { padding-bottom: 6px; }
.world-name { font: 750 clamp(40px, 3.8vw, 56px)/1.02 var(--font-display); letter-spacing: -.035em; font-variation-settings: "opsz" 96; overflow-wrap: anywhere; margin-bottom: 18px; }
.status-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.status-text { color: var(--ink-2); font-size: 15.5px; }

@keyframes blink { 50% { opacity: .3; } }
.address-row { display: flex; gap: 10px; align-items: stretch; }
.address {
  flex: 1; min-width: 0; display: flex; align-items: center; min-height: 50px; padding: 12px 16px; flex-wrap: wrap;
  background: var(--surface-2); border-radius: 13px; font: 500 15.5px/1.35 var(--font-mono); color: var(--ink);
  overflow-wrap: anywhere; user-select: all;
}
.address[data-empty] { color: var(--ink-3); font-family: var(--font-body); font-size: 15px; user-select: auto; }
.address-row .btn { height: 50px; min-width: 108px; }

.tile {
  --edge: var(--line-2);
  display: grid; justify-items: start; gap: 2px; text-align: left; align-content: space-between;
  padding: 14px 14px 13px; min-height: 92px; border-radius: 16px; cursor: pointer; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-2); box-shadow: 0 4px 0 var(--edge);
  margin-bottom: 4px; transition: transform .12s var(--ease), box-shadow .12s var(--ease), background-color .2s, border-color .2s;
}
.tile .ti { width: 24px; height: 24px; margin-bottom: 8px; display: grid; place-items: center; }
.tile .ti svg { width: 24px; height: 24px; }

.tile[data-op="start"] .ti { color: #e59a0b; }
.tile[data-op="stop"] .ti { color: #5d6bd6; }
.tile[data-op="restart"] .ti { color: #1f8f86; }
.tile[data-op="save"] .ti { color: #d9a400; }
.tile:hover:not(:disabled) { background: var(--surface-3); border-color: var(--line-3); }
.tile:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }
.tile:disabled { cursor: not-allowed; box-shadow: none; transform: translateY(4px); background: var(--surface-2); border-color: transparent; }
.tile:disabled .ti { opacity: .42; }
.tile[aria-busy="true"]:disabled { background: var(--accent-soft); }
.tile[aria-busy="true"]:disabled .ti { opacity: 1; color: var(--accent-ink); }
.tile[data-suggested="true"]:not(:disabled) { background: var(--accent); border-color: var(--accent); --edge: var(--accent-edge); color: var(--on-accent); }
.tile[data-suggested="true"]:not(:disabled) .ti { color: #ffe08a; }

.tile[data-suggested="true"]:hover:not(:disabled) { background: var(--accent-hover); }

.avatar { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; position: relative; flex: none; background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), 0 3px 0 rgba(0,0,0,.08); }
.avatar svg, .avatar img { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.avatar img { opacity: 0; transition: opacity .3s; }
.avatar img.loaded { opacity: 1; }

/* ================================================================ setup (first build) */

.build-card { padding: 28px; }

.progress { height: 14px; background: var(--surface-2); border-radius: 99px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,.06); }
.progress-bar { height: 100%; width: 0; border-radius: inherit; background: repeating-linear-gradient(-45deg, var(--accent) 0 10px, var(--accent-hover) 10px 20px); background-size: 28px 28px; animation: stripes 1s linear infinite; transition: width .3s linear; }
@keyframes stripes { to { background-position: 28px 0; } }
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 4px; }
.steps li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; padding: 10px 0; color: var(--ink-3); transition: color .3s; }
.steps li b { font-weight: 600; display: block; }
.steps li span { font-size: 14px; }
.step-icon { width: 30px; height: 30px; border-radius: 9px; border: 1.5px solid var(--line-2); background: var(--surface); display: grid; place-items: center; transition: all .3s var(--ease); }
.steps li[data-s="now"] { color: var(--ink); }
.steps li[data-s="now"] .step-icon { border-color: var(--accent); background: var(--accent-soft); }
.steps li[data-s="now"] .step-icon::after { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--accent); animation: bob 1s var(--ease) infinite alternate; }
@keyframes bob { from { transform: translateY(-2px) rotate(0); } to { transform: translateY(2px) rotate(90deg); } }
.steps li[data-s="done"] { color: var(--ink-2); }
.steps li[data-s="done"] .step-icon { background: var(--accent); border-color: var(--accent); }
.steps li[data-s="done"] .step-icon::after { content: ""; width: 10px; height: 6px; border: solid var(--on-accent); border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); }
.early-ip { margin-top: 18px; }
.early-ip .label { color: var(--ink-2); font-weight: 500; }

@keyframes pop-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; align-items: center; }

/* Create states */

.pick { height: 34px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--surface); cursor: pointer; font-size: 14px; font-weight: 500; color: var(--ink-2); box-shadow: 0 2px 0 var(--line-2); }
.pick:hover { color: var(--ink); border-color: var(--line-3); }
.pick:active { transform: translateY(2px); box-shadow: none; }

/* ================================================================ owner pages: sky header */

.page { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) 56px; }
.page-body { margin-top: 24px; }

.stack { display: grid; gap: 18px; align-content: start; }
.stack > .card { margin-top: 0; }

/* Players page */

.empty { text-align: center; padding: 34px 20px; border-radius: 20px; border: 1.5px dashed var(--line-2); margin-top: 18px; color: var(--ink-3); }
.empty b { display: block; font: 700 19px/1.3 var(--font-display); color: var(--ink); margin: 12px 0 4px; }

/* Settings page */

@keyframes flash { 0%, 40% { background: var(--warn-soft); } 100% { background: transparent; } }

.motd { margin-top: 12px; }

.motd figcaption { margin-top: 8px; font-size: 13px; color: var(--ink-3); }

/* Save bar: a floating dark bar, like the toasts */

/* Add-ons */

/* Backups */

@keyframes indet { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ================================================================ dialog */
dialog.dialog {
  border: 0; padding: 0; border-radius: 28px; width: min(480px, calc(100vw - 32px)); background: var(--surface); color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.5);
}
dialog.dialog::backdrop { background: rgb(14 18 32 / .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
dialog.dialog[open] { animation: pop-in .35s cubic-bezier(.2, 1.2, .4, 1) both; }

.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }

/* ================================================================ toasts */

@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ================================================================ footer */

/* Preview control (states.js): one small pill, bottom-left, on every page */

/* ================================================================ public pages */

/* FAQ */

.qa { display: grid; gap: 10px; }
.qa details { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-card); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font: 700 18px/1.3 var(--font-display); letter-spacing: -.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:focus-visible { border-radius: 20px; outline-offset: -3px; }

/* Help */

/* Legal */

/* Join (player) */

.faces { display: flex; }
.faces .avatar { width: 34px; height: 34px; border-radius: 10px; margin-right: -6px; box-shadow: 0 0 0 2.5px var(--surface); }

/* Waitlist + owners (landing-style pages) */

.sent { text-align: left; display: grid; gap: 12px; justify-items: start; }
.sent h2, .sent h3 { font: 700 30px/1.08 var(--font-display); letter-spacing: -.03em; }
.sent p { color: var(--ink-2); }
.points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.points li { display: flex; gap: 14px; align-items: center; }
.points b { display: block; font: 700 17px/1.2 var(--font-display); }
.points span { color: var(--ink-2); font-size: 15px; }

fieldset.fs { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
fieldset.fs legend { font: 700 18px/1.2 var(--font-display); letter-spacing: -.01em; padding: 0; margin-bottom: 14px; }
fieldset.fs + fieldset.fs { margin-top: 14px; }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--danger-soft); color: var(--danger); font-size: 14.5px; margin-bottom: 16px; }
.alert .i { width: 18px; height: 18px; flex: none; margin-top: 1px; }

/* ================================================================ responsive */
@media (max-width: 1180px) {
  .layout { grid-template-columns: minmax(0, 1fr) minmax(380px, 460px); gap: 32px; padding: 0 24px 32px; }
  
  
  
  
  
}

@media (max-width: 860px) {
  :root { --gutter: 16px; }
  .topbar-row { height: 64px; gap: 10px; }
  .brand { font-size: 19px; }
  .brand-mark { width: 26px; height: 26px; }
  
  .topbar .swatches { display: none; }
  
  
  
  
  
  
  
  
  body[data-chrome="app"] { --head-h: 112px; }
  .layout { grid-template-columns: 1fr; gap: 0; padding: 0 16px 32px; }
  .stage { position: relative; top: 0; height: min(56vh, 430px); min-height: 320px; border-radius: 28px; }
  body[data-view="world"] .stage { height: min(46vh, 360px); min-height: 280px; }
  .chip-status { left: 12px; bottom: 12px; font-size: 13.5px; padding: 8px 13px 8px 11px; }
  
  
  .panel { padding-top: 26px; }
  .display { font-size: clamp(34px, 9.4vw, 44px); }
  .world-name { font-size: clamp(34px, 9.4vw, 44px); }
  .lede { font-size: 16.5px; }
  .card { padding: 20px; border-radius: 24px; }
  
  
  
  
  
  .reasons, .how { grid-template-columns: 1fr; gap: 12px; }
  .band { margin-top: 44px; }
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
}
@media (max-width: 520px) {
  
  .address-row { flex-direction: column; }
  .address-row .btn { width: 100%; }
  
  
  
  
  
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  
}

/* Shulker brand accents across every customer palette, on every page (landing, console, legal pages). */
:root:root[data-theme] { --accent: #6f3f99; --accent-hover: #62378a; --accent-edge: #4b2970; --accent-soft: #efe5f6; --accent-ink: #6f3f99; }
:root:root[data-theme="night"] { --accent: #8a55b8; --accent-hover: #9762c4; --accent-edge: #563076; --accent-soft: #2a2140; --accent-ink: #cfa9ec; }
