/* CapedMC. Clean, light, system font; pixel capes as the only game-like touch. */
:root {
  --bg: #fbfbfd;
  --bg2: #f5f5f7;
  --card: #ffffff;
  --ink: #1d1d1f;
  --mut: #6e6e73;
  --hair: rgba(0, 0, 0, .08);
  --accent: #2f9e44;        /* a quiet grass green */
  --accent-hi: #278a3a;
  --link: #0066cc;
  --warn: #b25000;
  --bad: #d70015;
  --ok: #248a3d;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 28px rgba(0,0,0,.06);
  --r: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #000; --bg2: #111113; --card: #1c1c1e; --ink: #f5f5f7; --mut: #a1a1a6; --hair: rgba(255,255,255,.1);
    --accent: #34c759; --accent-hi: #30b350; --link: #2997ff; --warn: #ff9f0a; --bad: #ff453a; --ok: #30d158;
    --shadow: none; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.47 var(--font); letter-spacing: -.01em; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
[hidden] { display: none !important; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--link) 60%, transparent); outline-offset: 2px; }

/* ---- nav ---- */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--hair); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 52px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 600; font-size: 19px; letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo .cape { width: 14px; height: 22px; }
.nav .links { display: flex; gap: 22px; font-size: 14px; }
.nav .links a { color: var(--mut); }
.nav .links a:hover { color: var(--ink); text-decoration: none; }
.spacer { flex: 1; }
@media (max-width: 600px) { .nav .links { display: none; } }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; white-space: nowrap;
  background: var(--accent); color: #fff; font-weight: 500; font-size: 15px; padding: 10px 20px; min-height: 40px; border-radius: 980px; transition: background .2s, transform .1s; }
.btn:hover { background: var(--accent-hi); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn:disabled { background: color-mix(in srgb, var(--mut) 35%, transparent); color: var(--mut); cursor: default; transform: none; }
.btn.ghost { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
.btn.ghost:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); }
.btn.small { min-height: 32px; padding: 6px 14px; font-size: 14px; }
.btn.big { min-height: 50px; font-size: 17px; padding: 12px 28px; }
.btn.wide { width: 100%; }
.count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; }

/* ---- hero ---- */
.hero { text-align: center; padding-top: 84px; padding-bottom: 40px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 15px; margin: 0 0 10px; }
.hero h1 { margin: 0 auto; max-width: 780px; font-size: clamp(40px, 7vw, 76px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; }
.hero p.lead { margin: 18px auto 0; max-width: 600px; color: var(--mut); font-size: clamp(18px, 2.2vw, 22px); line-height: 1.4; }
.hero .cta { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .art { display: flex; justify-content: center; align-items: flex-end; gap: 18px; margin: 56px auto 0; }
.hero .art .cape { width: 60px; height: 96px; filter: drop-shadow(0 14px 18px rgba(0,0,0,.18)); }
.hero .art .cape:nth-child(2), .hero .art .cape:nth-child(4) { width: 72px; height: 115px; }
.hero .art .cape:nth-child(3) { width: 90px; height: 144px; }
@media (max-width: 520px) { .hero { padding-top: 56px; padding-bottom: 26px; } .hero .art .cape:first-child, .hero .art .cape:last-child { display: none; } }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.chips li { font-size: 13px; color: var(--mut); background: var(--bg2); border: 1px solid var(--hair); padding: 5px 12px; border-radius: 980px; }
.chips li::before { content: "\2713"; color: var(--accent); margin-right: 6px; font-weight: 700; }

/* ---- sections ---- */
section.block { padding: 64px 0; }
section.block.alt { background: var(--bg2); }
.block h2 { text-align: center; margin: 0 0 8px; font-size: clamp(30px, 4.6vw, 44px); letter-spacing: -.03em; line-height: 1.1; }
.block .sub { text-align: center; color: var(--mut); margin: 0 auto 36px; max-width: 560px; }
.notice { max-width: 640px; margin: 0 auto 28px; text-align: center; padding: 12px 18px; border-radius: 14px; background: color-mix(in srgb, var(--warn) 10%, var(--card)); color: var(--warn); font-size: 15px; }

/* ---- products ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid var(--hair); padding: 26px; display: flex; flex-direction: column; min-width: 0; }
.card .show { height: 190px; border-radius: 16px; margin: -6px -6px 22px; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: radial-gradient(70% 80% at 50% 60%, var(--tint, rgba(47,158,68,.14)), transparent 72%), var(--bg2); }
.card .show .cape { width: 70px; height: 112px; filter: drop-shadow(0 10px 12px rgba(0,0,0,.18)); }
.card .show.n2 .cape { width: 56px; height: 90px; }
.card .show.n3 .cape, .card .show.n4 .cape, .card .show.n5 .cape { width: 40px; height: 64px; }
.card h3 { margin: 0; font-size: 22px; letter-spacing: -.02em; line-height: 1.2; }
.card .desc { margin: 6px 0 0; color: var(--mut); font-size: 15px; }
.card .grow { flex: 1; }
.card .foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.price { font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.stock { font-size: 13px; color: var(--ok); }
.stock.low { color: var(--warn); }
.stock.out { color: var(--bad); }
.linkbtn { background: none; border: 0; padding: 0; margin-top: 12px; color: var(--link); cursor: pointer; font-size: 15px; text-align: left; }
.linkbtn:hover { text-decoration: underline; }

.possible { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.possible li { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; background: var(--bg2); border: 1px solid var(--hair); border-radius: 980px; padding: 4px 10px 4px 8px; }
.possible .cape { width: 8px; height: 13px; }
.odds { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.odds th { text-align: left; color: var(--mut); font-weight: 500; font-size: 12px; padding: 4px 0; }
.odds td { padding: 7px 0; border-top: 1px solid var(--hair); vertical-align: middle; }
.odds .n { text-align: right; font-variant-numeric: tabular-nums; }
.odds .nm { display: flex; align-items: center; gap: 10px; }
.odds .cape { width: 10px; height: 16px; flex: none; }

/* ---- steps and FAQ ---- */
.steps3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.step { background: var(--card); border-radius: var(--r); border: 1px solid var(--hair); padding: 28px; box-shadow: var(--shadow); }
.step b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.02em; }
.step p { margin: 0; color: var(--mut); font-size: 15px; }
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--hair); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--mut); font-weight: 400; font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 0; color: var(--mut); font-size: 16px; }

/* ---- bag (cart) sheet ---- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.32); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.sheet { position: fixed; top: 10px; right: 10px; bottom: 10px; z-index: 41; width: min(430px, calc(100% - 20px)); overflow-y: auto;
  background: var(--card); border-radius: 26px; box-shadow: 0 24px 80px rgba(0,0,0,.25); padding: 24px; animation: in .28s cubic-bezier(.2,.8,.2,1); }
@keyframes in { from { transform: translateX(30px); opacity: 0; } }
.sheet h2 { margin: 0 0 8px; font-size: 26px; letter-spacing: -.03em; display: flex; align-items: center; justify-content: space-between; }
.x { width: 32px; height: 32px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--mut); font-size: 18px; cursor: pointer; }
.line { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.line .thumb { width: 52px; height: 52px; border-radius: 12px; background: var(--bg2); display: grid; place-items: center; flex: none; }
.line .thumb .cape { width: 18px; height: 29px; }
.line .nm { flex: 1; min-width: 0; }
.line .nm b { display: block; font-weight: 600; font-size: 16px; }
.line .nm small { color: var(--mut); font-size: 14px; }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--hair); background: var(--bg2); cursor: pointer; font-size: 17px; line-height: 1; }
.qty button:disabled { opacity: .35; cursor: default; }
.qty span { min-width: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 4px; font-size: 19px; font-weight: 600; }
form.pay label.f { display: block; margin: 16px 0 6px; font-size: 13px; font-weight: 500; color: var(--mut); }
form.pay input[type=email], form.pay input[type=text], form.pay select {
  width: 100%; padding: 12px 14px; background: var(--bg2); border: 1px solid var(--hair); border-radius: 12px; font-size: 16px; appearance: none; -webkit-appearance: none; }
form.pay select { background-image: linear-gradient(45deg, transparent 50%, var(--mut) 50%), linear-gradient(135deg, var(--mut) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
form.pay input:focus, form.pay select:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px color-mix(in srgb, var(--link) 22%, transparent); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; font-size: 13.5px; color: var(--mut); cursor: pointer; line-height: 1.4; }
.check input { width: 18px; height: 18px; flex: none; margin: 1px 0 0; accent-color: var(--accent); }
.err { margin: 12px 0 0; color: var(--bad); font-size: 14px; min-height: 1em; }
.fine { color: var(--mut); font-size: 12.5px; margin: 12px 0 0; line-height: 1.45; }
.spin { display: inline-block; width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: r .7s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes r { to { transform: rotate(360deg); } }

/* ---- order page ---- */
.box { max-width: 680px; margin: 48px auto; background: var(--card); border-radius: 28px; border: 1px solid var(--hair); box-shadow: var(--shadow); padding: 34px; }
.box h1 { margin: 0 0 6px; font-size: clamp(28px, 5vw, 40px); letter-spacing: -.03em; line-height: 1.1; }
.box .sub { color: var(--mut); margin: 0 0 18px; }
.code { display: flex; align-items: center; gap: 14px; padding: 14px; margin: 10px 0; border-radius: 16px; background: var(--bg2); }
.code .cape { width: 20px; height: 32px; flex: none; }
.code .nm { flex: 1; min-width: 0; }
.code .nm small { display: block; color: var(--mut); font-size: 13px; }
.code .val { font-family: var(--mono); font-size: clamp(14px, 3.4vw, 18px); font-weight: 600; letter-spacing: .02em; word-break: break-all; user-select: all; -webkit-user-select: all; }
ol.how { padding-left: 22px; color: var(--mut); }
ol.how li { margin: 8px 0; }
ol.how b { color: var(--ink); font-weight: 600; }

/* ---- legal pages ---- */
.doc { max-width: 720px; margin: 0 auto; padding: 56px 22px 30px; font-size: 16px; }
.doc h1 { font-size: 40px; letter-spacing: -.03em; margin: 0 0 6px; }
.doc h2 { font-size: 20px; margin: 30px 0 8px; letter-spacing: -.02em; }
.doc p, .doc li { color: color-mix(in srgb, var(--ink) 82%, var(--bg)); }
.todo { background: #ffd60a; color: #000; padding: 0 4px; border-radius: 4px; }

footer { border-top: 1px solid var(--hair); background: var(--bg2); padding: 26px 0 40px; color: var(--mut); font-size: 12.5px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 12px; }
footer nav a { color: var(--mut); }
footer p { margin: 6px 0 0; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
