/* Spin & Share: "Midnight navy" theme (round 4, after option C). Tokens first, then layout and components. */
:root {
  /* Playfair Display covers Latin + Cyrillic; CJK falls back to good serifs on each system. */
  --font-display: "Playfair Display", "Noto Serif", Georgia, "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", "Songti SC", "Noto Serif CJK SC", "Source Han Serif", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", "Noto Sans CJK JP", "PingFang SC", "Microsoft YaHei", sans-serif;
  /* winter night, blue-green */
  --night: #09131f; --night-2: #0f2032; --edge: rgb(200 220 240 / .16);
  --snow: #f4ecdf; --soft: #c9d3dc; --muted: #9fb0bf;
  /* paper */
  --cream: #fbf3e2; --cream-2: #f2e4c6; --wedge: #f8eedb; --ink: #2b1f16; --ink-2: #5f4e3c; --line: #e3d2b0;
  /* festive */
  --red: #c62828; --red-d: #9f1f1f; --gold: #f0c45a; --gold-ink: #7f5c06; --pine: #1b6b4c; --amber: #ffb84d;
  --focus: #f0c45a;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
html.locked { overflow: hidden; }
body {
  margin: 0; min-height: 100dvh; color: var(--snow); font: 400 1rem/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background:
    radial-gradient(900px 620px at 76% 22%, rgb(255 170 70 / .12), transparent 60%),
    radial-gradient(1100px 700px at 80% 8%, #18324d 0%, transparent 62%),
    radial-gradient(800px 600px at 0% 55%, #12263c 0%, transparent 60%),
    linear-gradient(180deg, #0c1a2a, #09131f 60%, #070f19);
  background-color: var(--night);
}
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--gold); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 10px; }
.wrap { width: min(1220px, 100% - 32px - var(--sal) - var(--sar)); margin-inline: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; margin: 0 0 .45em; text-wrap: balance; }
p { text-wrap: pretty; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }
main, header, footer { position: relative; z-index: 2; }
.skip { position: absolute; z-index: 90; left: 16px; top: -80px; padding: .7em 1.1em; border-radius: 12px; background: var(--cream); color: var(--ink); font-weight: 800; transition: top .2s; }
.skip:focus { top: calc(12px + var(--sat)); }
.noscript { position: relative; z-index: 3; margin: 0; padding: 16px; text-align: center; background: var(--red); color: #fff; }
.snow { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.snow i { position: absolute; top: -10px; width: var(--s); height: var(--s); border-radius: 50%; background: #fff; opacity: var(--o); animation: fall var(--d) linear var(--dl) infinite; }
@keyframes fall { to { transform: translate3d(var(--x), 105vh, 0); } }

/* Japanese and Chinese: no synthetic italics, no tracking, no capitals, more leading */
:lang(ja) :not(.wordmark em), :lang(zh) :not(.wordmark em) { font-style: normal !important; letter-spacing: 0 !important; text-transform: none !important; }
:lang(ja) body, :lang(zh) body { line-height: 1.75; }
:lang(ja) :is(h1, h2, h3, p), :lang(zh) :is(h1, h2, h3, p) { line-height: 1.45; word-break: auto-phrase; line-break: strict; }
:lang(ja) .tag .rule, :lang(zh) .tag .rule { font-weight: 800; }
:lang(de) :is(h1, h2, h3, p, b, .btn, .pill), :lang(ru) :is(h1, h2, h3, p, b, .btn, .pill), :lang(bg) :is(h1, h2, h3, p, b, .btn, .pill), :lang(pl) :is(h1, h2, h3, p, b, .btn, .pill) { hyphens: auto; overflow-wrap: break-word; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 52px; border: 0; border-radius: 999px; padding: .85em 1.5em; font: 800 1.03rem/1.15 var(--font-body); text-decoration: none; text-align: center; cursor: pointer; transition: transform .2s cubic-bezier(.3,1.6,.5,1), box-shadow .2s, background-color .2s; }
.btn svg { flex: none; width: 20px; height: 20px; }
.btn:active { transform: scale(.97); }
.btn-red { background: linear-gradient(180deg, #d8372f, #b5231f); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 10px 26px rgb(198 40 40 / .4); }
.btn-gold { background: linear-gradient(180deg, #f7d27a, #e3a93a); color: #2a1d05; box-shadow: inset 0 1px 0 rgb(255 240 200 / .6), 0 10px 28px rgb(240 180 60 / .28); }
.btn-ghost { background: rgb(255 255 255 / .06); color: var(--snow); border: 1px solid var(--edge); }
.btn-pine { background: var(--pine); color: #fff; }
.btn-line { background: none; border: 1.5px solid var(--line); color: var(--ink); }
@media (hover: hover) { .btn-red:hover, .btn-gold:hover { transform: translateY(-2px); } .btn-ghost:hover { background: rgb(255 255 255 / .12); } }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; border: 1px solid var(--edge); background: rgb(255 255 255 / .05); color: var(--snow); padding: .5em 1.05em; border-radius: 999px; font-weight: 800; font-size: .95rem; cursor: pointer; transition: background-color .2s, border-color .2s; }
.pill.sq { width: 48px; padding: 0; }
@media (hover: hover) { .pill:hover { background: rgb(255 255 255 / .1); border-color: rgb(240 196 90 / .5); } }
.pill svg { flex: none; width: 19px; height: 19px; }
.pill[aria-pressed="true"] { background: rgb(240 196 90 / .16); border-color: var(--gold); color: var(--gold); }

/* ---------- header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: calc(20px + var(--sat)) 0 6px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--snow); min-width: 0; }
.brand img { flex: none; width: 104px; height: 104px; filter: drop-shadow(0 8px 18px rgb(0 0 0 / .45)); transition: transform .6s cubic-bezier(.3,1.5,.5,1); }
.brand:hover img { transform: rotate(-8deg); }
.wordmark { display: grid; font: 800 2.75rem/.95 "Playfair Display", Georgia, serif; letter-spacing: -.005em; }
.wordmark em { font-style: italic; font-weight: 700; color: var(--gold); }
.wordmark small { font: 800 .78rem/1.2 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 10px; white-space: nowrap; }
.top-r { display: flex; align-items: center; gap: 8px; }
.nav { display: flex; gap: 2px; margin-right: 6px; }
.nav a { color: var(--soft); text-decoration: none; font-weight: 700; padding: .65em .9em; border-radius: 999px; }
.nav a:hover { color: #fff; background: rgb(255 255 255 / .06); }

/* share (same behaviour as Sleigh Route) */
.share-menu, .pop { position: relative; }
.share-btn { position: relative; display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: .3em 1.1em .3em .95em; border-radius: 99px; cursor: pointer; overflow: hidden;
  border: 0; color: #fff; font-weight: 800; font-size: 1rem; background: linear-gradient(135deg, #e0483c 0%, #c62828 60%, #a51f1f 100%);
  box-shadow: 0 6px 18px rgb(198 40 40 / .45), inset 0 1px 0 rgb(255 255 255 / .3); transition: transform .15s, box-shadow .2s; }
.share-btn svg { width: 18px; height: 18px; }
.share-btn:active { transform: scale(.96); }
.share-btn[aria-expanded="true"] { box-shadow: 0 0 0 3px rgb(240 196 90 / .5), 0 6px 18px rgb(198 40 40 / .45); }
.share-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; width: 344px; padding: 18px; border-radius: 22px; background: var(--cream); color: var(--ink); box-shadow: 0 24px 60px rgb(0 0 0 / .5); transform-origin: top right; animation: pop-in .22s cubic-bezier(.2,.9,.3,1.2); }
@keyframes pop-in { from { opacity: 0; scale: .92; translate: 0 -6px; } }
.sp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sp-head h2 { margin: 0; font-size: 1.25rem; }
.sp-close { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--cream-2); color: var(--ink); cursor: pointer; }
.sp-close svg { width: 16px; height: 16px; }
.sp-text { margin: 6px 0 14px; color: var(--ink-2); font-size: .92rem; }
.sp-actions { display: flex; gap: 8px; margin-bottom: 14px; }
.sp-action { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: .4em .9em; border-radius: 14px; cursor: pointer; border: 1px solid var(--line); background: var(--cream-2); color: var(--ink); font-weight: 800; font-size: .95rem; }
.sp-action svg { width: 18px; height: 18px; }
.sp-native { background: var(--red); border-color: transparent; color: #fff; }
.sp-copy.is-done { background: #e3f1e6; border-color: #9fcfac; color: #1f6b45; }
.sp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 6px; }
.sp-grid a { display: grid; justify-items: center; gap: 6px; padding: 6px 2px; border-radius: 14px; color: var(--ink); text-decoration: none; font-size: .8rem; font-weight: 700; }
.sp-grid a:hover { background: var(--cream-2); }
.sp-ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--c); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--c) 45%, transparent); }
.sp-ic svg { width: 22px; height: 22px; fill: currentColor; }
.sp-name { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.share-scrim { display: none; }

.pop-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; background: #13253a; border: 1px solid var(--edge); border-radius: 18px; padding: 16px; width: 320px; box-shadow: 0 22px 50px rgb(0 0 0 / .5); animation: pop-in .22s cubic-bezier(.2,.9,.3,1.2); }
.pop-panel h2 { font-size: 1.15rem; margin: 0 0 .5em; }
.pop-panel ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pop-panel li button { width: 100%; min-height: 44px; text-align: left; background: rgb(255 255 255 / .06); border: 0; border-radius: 10px; padding: .45em .7em; cursor: pointer; font-weight: 700; }
.pop-panel li button[aria-current="true"] { background: var(--gold); color: #2a1d05; }
.pop-panel li b { font-size: .8em; opacity: .75; margin-right: .4em; }
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--edge); font-weight: 700; }
.switch { position: relative; flex: none; width: 52px; height: 30px; border-radius: 999px; border: 0; background: rgb(255 255 255 / .18); cursor: pointer; }
.switch::after { content: ""; position: absolute; left: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch[aria-checked="true"] { background: var(--pine); }
.switch[aria-checked="true"]::after { transform: translateX(22px); }

/* ---------- hero + wheel ---------- */
.hero { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); grid-template-areas: "intro wheel" "more wheel"; column-gap: 48px; padding: 20px 0 30px; }
.intro { grid-area: intro; align-self: end; padding-top: 40px; }
.more { grid-area: more; align-self: start; }
.wheelarea { grid-area: wheel; text-align: center; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: italic 700 1.3rem/1.2 var(--font-display); color: var(--soft); margin: 0 0 12px; }
.eyebrow::before { content: ""; flex: none; width: 15px; height: 15px; background: var(--gold); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.9 6.4 5.6 11.1 12 12-6.4.9-11.1 5.6-12 12-.9-6.4-5.6-11.1-12-12C6.4 11.1 11.1 6.4 12 0z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.9 6.4 5.6 11.1 12 12-6.4.9-11.1 5.6-12 12-.9-6.4-5.6-11.1-12-12C6.4 11.1 11.1 6.4 12 0z'/%3E%3C/svg%3E") center/contain no-repeat; filter: drop-shadow(0 0 4px rgb(255 200 90 / .5)); }
.sibling span::after { content: "\00a0\00a0\00a0\00a0"; margin-left: .15em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23f2c14e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h4v4M13 3 7.5 8.5M11 9.5V13H3V5h3.5'/%3E%3C/svg%3E") right center / .85em .85em no-repeat; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.3rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .35em; }
.hero h1 em { color: var(--gold); font-style: italic; font-weight: 700; }
.lead { font-size: 1.14rem; color: var(--soft); max-width: 31em; margin: 0 0 24px; }
.lead-m { display: none; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.facts { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; max-width: 470px; }
.facts li { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; }
.facts .fi { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--cream); box-shadow: 0 6px 14px rgb(0 0 0 / .3); }
.facts .fi svg { width: 26px; height: 26px; }
.facts b { display: block; font-weight: 800; }
.facts span { color: var(--muted); font-size: .95rem; }

.ask { font: 700 1.3rem/1.25 var(--font-display); margin: 0 0 10px; color: var(--snow); }
.ask small { display: block; font: 600 .95rem/1.4 var(--font-body); color: var(--muted); margin-top: 4px; }
.stagewrap { position: relative; display: grid; place-items: center; }
.wheel { --rot: 0deg; position: relative; width: min(620px, 100%); aspect-ratio: 1; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.wheel::before { content: ""; position: absolute; inset: -4%; border-radius: 50%; background: radial-gradient(circle, rgb(255 190 90 / .3), rgb(255 150 60 / .1) 52%, transparent 70%); filter: blur(16px); pointer-events: none; }
.wheel > svg { position: relative; width: 100%; height: 100%; overflow: visible; transform: rotate(var(--rot)); transition: transform .45s cubic-bezier(.3,1.25,.5,1); }
.wheel.dragging > svg { transition: none; }
.wc { transition: transform .45s cubic-bezier(.3,1.2,.5,1); }
.wedge { cursor: pointer; outline: none; }
.wedge .lift { transition: transform .2s cubic-bezier(.3,1.6,.5,1); }
@media (hover: hover) { .wedge:hover .lift { transform: translate(var(--dx), var(--dy)); } }
.wedge:focus-visible .base { stroke: var(--gold); stroke-width: 6; }
.wedge .halo { opacity: 0; transition: opacity .2s; }
.wedge.on .halo, .wedge.sel .halo { opacity: 1; }
.wedge.on .base, .wedge.sel .base { fill: #fffaf0; }
.wedge.on .lift, .wedge.sel .lift { transform: translate(calc(var(--dx) * 1.6), calc(var(--dy) * 1.6)); }
.wedge.sel .base { stroke: #e8b54a; stroke-width: 5; }
.wedge.empty .base { fill: rgb(248 238 219 / .35); }
.wname { font-family: var(--font-body); font-weight: 800; fill: var(--ink); }
.bulb { animation: tw 2.6s ease-in-out infinite alternate; }
@keyframes tw { 0% { opacity: .4; } 100% { opacity: 1; } }
.arrow, .hubstar, .guide { pointer-events: none; }   /* decorations: taps go through to the wedges */
.arrow { opacity: 0; transition: opacity .15s; }
.arrow.show { opacity: 1; }
.arrow.spin { transition: transform 3s cubic-bezier(.12,.72,.18,1), opacity .15s; }
.guide { opacity: 0; transition: opacity .3s; }
.wheel.aligning .guide { opacity: 1; }
.guide circle { animation: dash 14s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -200; } }
.hubstar { transform-origin: 200px 200px; transform-box: view-box; }
.wheel.snap .hubstar { animation: snap .18s ease-out; }
.wheel.snap .guide { opacity: 1; }
@keyframes snap { 50% { transform: scale(1.18); } }
.wtools { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.try { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; padding: 0 10px; border: 0; background: none; color: var(--muted); font-weight: 700; text-decoration: underline; text-underline-offset: .25em; text-decoration-color: rgb(169 188 184 / .5); cursor: pointer; }
.try:hover { color: var(--snow); }
.nudge { margin: 10px auto 0; max-width: 460px; padding: 12px 16px; border-radius: 16px; background: rgb(240 196 90 / .1); border: 1px dashed rgb(240 196 90 / .45); font-weight: 700; font-size: .95rem; }
.nudge a { font-weight: 800; }

/* ---------- the card: a gift tag on a dark scrim ---------- */
.ov { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; overflow: auto; overscroll-behavior: contain;
  padding: max(18px, var(--sat)) max(16px, var(--sar)) max(18px, var(--sab)) max(16px, var(--sal));
  background: rgb(5 11 20 / .86); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.hang { position: relative; width: min(430px, 100%); display: grid; gap: 12px; transform-origin: 50% 50%; transition: transform .35s cubic-bezier(.3,1.2,.5,1); }
.twine { position: absolute; left: 50%; bottom: calc(100% - 2px); height: 60vh; width: 7px; margin-left: -3.5px; border-radius: 3px; background: repeating-linear-gradient(160deg, #d6b583 0 3px, #9c7a4c 3px 6px); opacity: .95; pointer-events: none; }
/* GPT-drawn card-stock tag (img/gift-tag-*.webp): the top (eyelet, cut corners, embossing) and the bottom keep their size, the middle stretches with the text */
.tag { position: relative; color: var(--ink); min-height: 470px; padding: 0 12px;
  border-style: solid; border-color: transparent; border-width: 150px 30px 118px; border-image-width: 150px 30px 118px;
  border-image-source: url("../img/gift-tag-406.webp"); border-image-source: image-set(url("../img/gift-tag-406.webp") 1x, url("../img/gift-tag-812.webp") 2x);
  border-image-slice: 300 64 250 64 fill; border-image-repeat: stretch; filter: drop-shadow(0 26px 34px rgb(0 0 0 / .55)); }
.tag::before { content: ""; position: absolute; left: 22%; right: 22%; top: -26px; height: 4px; border-radius: 3px; background: var(--ci); opacity: .85; }
.tag .eye { display: none; }
.tag .hd { margin-top: -54px !important; }
.tag .hd { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 4px; }
.tag .hd .ic { width: 42px; height: 42px; color: var(--ci); }
.tag .hd b { font: 800 .95rem/1.1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.tag .to { text-align: center; font: italic 700 1.05rem/1.2 var(--font-display); color: var(--ink-2); margin: 6px 0 12px; }
.tag .prompt { font: 600 clamp(1.5rem, 6.2vw, 1.85rem)/1.22 var(--font-display); text-align: center; margin: 0 0 14px; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
.tag .empty { font: 600 1.2rem/1.4 var(--font-body); }
.tag .rule { text-align: center; font: italic 700 1.25rem/1.25 var(--font-display); color: var(--ci); margin: 0 0 12px; }
.tag .meta { text-align: center; font: 700 .88rem/1.3 var(--font-body); color: var(--ink-2); margin: 0; padding-top: 12px; border-top: 1.5px dashed var(--line); }
.tag .meta .short { display: none; }
.flap { position: relative; margin: 4px 0 16px; }
.flap > button { width: 100%; min-height: 84px; border: 0; border-radius: 14px; cursor: pointer; color: #3a2708; font: 800 1.05rem/1.2 var(--font-body); display: grid; place-items: center; padding: 10px;
  background: linear-gradient(180deg, #f1d184, #e3b453); box-shadow: 0 -1px 0 #fff6d8 inset, 0 6px 0 #c49433, 0 10px 18px rgb(120 80 20 / .25); }
.flap .fold { position: absolute; left: 10px; right: 10px; top: 10px; border-top: 1.5px dashed rgb(80 50 10 / .35); pointer-events: none; }
.flap.open > button, .flap.open .fold { display: none; }
.ans { display: none; text-align: center; padding: 14px 12px; border-radius: 14px; border: 2px dashed var(--ci); background: #fffaf0; }
.ans small { display: block; font: 800 .8rem/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.ans b { font: 700 1.6rem/1.15 var(--font-display); color: var(--ci); }
.flap.open .ans { display: block; animation: pop .35s cubic-bezier(.3,1.5,.5,1); }
@keyframes pop { from { transform: scale(.9); opacity: 0; } }
.cbtns { display: grid; gap: 8px; }
.cbtns .btn { width: 100%; }
.btn-back { background: none; color: var(--snow); border: 1.5px solid rgb(246 236 218 / .38); }
@media (hover: hover) { .btn-back:hover { background: rgb(255 255 255 / .07); } }
/* close and turn sit inside the tag, below its cut corners */
.card-x { position: absolute; z-index: 2; top: 104px; right: 40px; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--cream-2); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.card-x::before { content: ""; position: absolute; inset: -4px; }
.card-x svg { width: 18px; height: 18px; }
.card-x:focus-visible { outline-color: var(--pine); }
/* table "Flat": a big, always-upright button that turns the card a quarter at a time */
.card-turn { position: fixed; z-index: 3; left: 50%; bottom: max(18px, var(--sab)); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 26px 0 14px; border-radius: 999px; border: 2px solid #ffe7a6; background: linear-gradient(180deg, #f7d27a, #e3a93a); color: #2a1d05; font: 800 1.15rem/1 var(--font-body); cursor: pointer; box-shadow: 0 12px 30px rgb(0 0 0 / .5); white-space: nowrap; }
.card-turn svg { width: 38px; height: 38px; transition: transform .35s cubic-bezier(.3,1.2,.5,1); }
body.tablemode .ov { padding-bottom: 100px; }
.tag.in { animation: drop .5s cubic-bezier(.2,.85,.3,1.15); }
@keyframes drop { 0% { transform: translateY(-30px) rotate(-4deg); opacity: 0; } 60% { transform: rotate(1.5deg); opacity: 1; } 100% { transform: none; } }

/* ---------- model ---------- */
.model { padding: 50px 0 60px; }
.model-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
/* gallery (round 11, F2): a vintage Christmas postcard. Deckled edge, greeting line + caption, ink-circle dots,
   postage stamp + postmark, airmail-ring arrows. Sizes in cqw so the card scales as one object. */
:root { --worn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.9 2.75'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"); --worn2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='120'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .05' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.6 1.95'/%3E%3C/filter%3E%3Crect width='300' height='120' filter='url(%23m)'/%3E%3C/svg%3E"); }
.frame { position: relative; container-type: inline-size; padding: 0 2.5%; filter: drop-shadow(0 20px 24px rgb(0 0 0 / .55)); }
.pc-card { position: relative; transform: rotate(-1.2deg); padding: 3cqw 3cqw 0; background: radial-gradient(120% 90% at 30% 20%, #fbf3df, #efe0bd 70%, #e3cfa3); background-color: #f3e6c8;
  clip-path: polygon(0.00% 1.4px, 1.56% 1.7px, 3.12% 2.8px, 4.69% 1.4px, 6.25% 1.5px, 7.81% 1.8px, 9.38% 0.6px, 10.94% 1.5px, 12.50% 1.9px, 14.06% 2.4px, 15.62% 0.3px, 17.19% 0.9px, 18.75% 0.3px, 20.31% 2.4px, 21.88% 2.1px, 23.44% 0.1px, 25.00% 2.9px, 26.56% 2.9px, 28.12% 2.0px, 29.69% 1.8px, 31.25% 0.5px, 32.81% 0.0px, 34.38% 1.6px, 35.94% 0.2px, 37.50% 0.6px, 39.06% 0.7px, 40.62% 0.1px, 42.19% 1.4px, 43.75% 1.3px, 45.31% 2.5px, 46.88% 1.6px, 48.44% 1.9px, 50.00% 1.5px, 51.56% 2.0px, 53.12% 1.4px, 54.69% 0.8px, 56.25% 3.0px, 57.81% 3.0px, 59.38% 2.5px, 60.94% 2.1px, 62.50% 0.9px, 64.06% 0.7px, 65.62% 0.9px, 67.19% 0.2px, 68.75% 2.3px, 70.31% 1.2px, 71.88% 2.5px, 73.44% 1.2px, 75.00% 2.9px, 76.56% 2.5px, 78.12% 0.0px, 79.69% 0.6px, 81.25% 2.7px, 82.81% 1.4px, 84.38% 2.9px, 85.94% 1.2px, 87.50% 0.2px, 89.06% 1.9px, 90.62% 2.3px, 92.19% 0.8px, 93.75% 0.3px, 95.31% 1.0px, 96.88% 2.9px, 98.44% 2.3px, 100.00% 0.4px, calc(100% - 0.7px) 2.27%, calc(100% - 0.3px) 4.55%, calc(100% - 0.2px) 6.82%, calc(100% - 2.4px) 9.09%, calc(100% - 0.5px) 11.36%, calc(100% - 1.7px) 13.64%, calc(100% - 1.3px) 15.91%, calc(100% - 0.6px) 18.18%, calc(100% - 2.2px) 20.45%, calc(100% - 0.4px) 22.73%, calc(100% - 1.9px) 25.00%, calc(100% - 0.3px) 27.27%, calc(100% - 1.3px) 29.55%, calc(100% - 0.6px) 31.82%, calc(100% - 0.8px) 34.09%, calc(100% - 2.9px) 36.36%, calc(100% - 2.4px) 38.64%, calc(100% - 0.9px) 40.91%, calc(100% - 2.7px) 43.18%, calc(100% - 0.6px) 45.45%, calc(100% - 1.2px) 47.73%, calc(100% - 2.6px) 50.00%, calc(100% - 1.9px) 52.27%, calc(100% - 0.3px) 54.55%, calc(100% - 3.0px) 56.82%, calc(100% - 0.6px) 59.09%, calc(100% - 0.8px) 61.36%, calc(100% - 2.3px) 63.64%, calc(100% - 1.0px) 65.91%, calc(100% - 0.9px) 68.18%, calc(100% - 0.2px) 70.45%, calc(100% - 0.3px) 72.73%, calc(100% - 1.7px) 75.00%, calc(100% - 0.7px) 77.27%, calc(100% - 1.8px) 79.55%, calc(100% - 1.1px) 81.82%, calc(100% - 1.4px) 84.09%, calc(100% - 2.9px) 86.36%, calc(100% - 1.5px) 88.64%, calc(100% - 1.7px) 90.91%, calc(100% - 2.6px) 93.18%, calc(100% - 0.5px) 95.45%, calc(100% - 0.5px) 97.73%, calc(100% - 2.7px) 100.00%, 98.44% calc(100% - 2.5px), 96.88% calc(100% - 0.7px), 95.31% calc(100% - 0.6px), 93.75% calc(100% - 2.2px), 92.19% calc(100% - 2.8px), 90.62% calc(100% - 0.6px), 89.06% calc(100% - 2.9px), 87.50% calc(100% - 2.6px), 85.94% calc(100% - 1.8px), 84.38% calc(100% - 1.3px), 82.81% calc(100% - 0.3px), 81.25% calc(100% - 0.1px), 79.69% calc(100% - 2.9px), 78.12% calc(100% - 0.7px), 76.56% calc(100% - 2.1px), 75.00% calc(100% - 0.8px), 73.44% calc(100% - 2.5px), 71.88% calc(100% - 1.8px), 70.31% calc(100% - 0.9px), 68.75% calc(100% - 0.5px), 67.19% calc(100% - 2.2px), 65.62% calc(100% - 0.2px), 64.06% calc(100% - 0.7px), 62.50% calc(100% - 1.7px), 60.94% calc(100% - 2.6px), 59.38% calc(100% - 1.8px), 57.81% calc(100% - 0.8px), 56.25% calc(100% - 2.8px), 54.69% calc(100% - 0.6px), 53.12% calc(100% - 0.0px), 51.56% calc(100% - 0.8px), 50.00% calc(100% - 1.3px), 48.44% calc(100% - 0.2px), 46.88% calc(100% - 0.5px), 45.31% calc(100% - 1.1px), 43.75% calc(100% - 1.7px), 42.19% calc(100% - 0.4px), 40.62% calc(100% - 1.1px), 39.06% calc(100% - 2.7px), 37.50% calc(100% - 2.9px), 35.94% calc(100% - 2.0px), 34.38% calc(100% - 2.1px), 32.81% calc(100% - 1.8px), 31.25% calc(100% - 0.4px), 29.69% calc(100% - 0.1px), 28.12% calc(100% - 0.1px), 26.56% calc(100% - 2.7px), 25.00% calc(100% - 2.1px), 23.44% calc(100% - 2.9px), 21.88% calc(100% - 0.1px), 20.31% calc(100% - 1.9px), 18.75% calc(100% - 1.4px), 17.19% calc(100% - 2.2px), 15.62% calc(100% - 1.0px), 14.06% calc(100% - 3.0px), 12.50% calc(100% - 0.2px), 10.94% calc(100% - 1.6px), 9.38% calc(100% - 2.2px), 7.81% calc(100% - 2.7px), 6.25% calc(100% - 2.2px), 4.69% calc(100% - 2.1px), 3.12% calc(100% - 2.4px), 1.56% calc(100% - 2.7px), 0.00% calc(100% - 1.1px), 2.1px 97.73%, 2.7px 95.45%, 2.6px 93.18%, 1.3px 90.91%, 2.4px 88.64%, 2.6px 86.36%, 1.7px 84.09%, 1.9px 81.82%, 1.1px 79.55%, 1.7px 77.27%, 1.8px 75.00%, 0.2px 72.73%, 1.9px 70.45%, 3.0px 68.18%, 2.6px 65.91%, 2.2px 63.64%, 1.2px 61.36%, 2.2px 59.09%, 1.7px 56.82%, 1.3px 54.55%, 2.5px 52.27%, 0.3px 50.00%, 2.3px 47.73%, 0.1px 45.45%, 1.8px 43.18%, 1.4px 40.91%, 0.7px 38.64%, 2.1px 36.36%, 1.5px 34.09%, 1.8px 31.82%, 2.8px 29.55%, 0.8px 27.27%, 0.0px 25.00%, 0.9px 22.73%, 2.0px 20.45%, 0.6px 18.18%, 0.5px 15.91%, 2.7px 13.64%, 2.0px 11.36%, 1.3px 9.09%, 2.7px 6.82%, 1.0px 4.55%, 2.0px 2.27%); }
.pc-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: multiply; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' seed='2'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .42 0 0 0 0 .25 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23p)'/%3E%3C/svg%3E"); }
.frame .slides { position: relative; border-radius: 0; box-shadow: 0 0 0 1px rgb(80 60 30 / .35); filter: sepia(.12) saturate(.95); }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 3 / 2; border-radius: 2px; background: #e8dcc1; }
.slides::-webkit-scrollbar { display: none; }
.slides figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; }
.slides img { width: 100%; height: 100%; object-fit: cover; }
.pcap { position: relative; display: flex; align-items: center; gap: 2cqw; min-height: max(56px, 16cqw); padding: 0 31cqw 0 .5cqw; color: #9f1f1f; }
.pc-greet { min-width: 0; }
.pc-greet small { display: block; font: 800 max(8px, 1.45cqw)/1.1 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: #7d5f33; margin-bottom: max(3px, .8cqw); }
#photo-cap { display: block; font: italic 700 clamp(15px, 3.5cqw, 23px)/1.08 var(--font-display); color: #9f1f1f; }
.frame .dots { margin-left: auto; position: relative; z-index: 1; }
.frame .dots button { width: max(18px, 2.6cqw); height: 44px; }
.frame .dots button::after { width: max(7px, 1.1cqw); height: max(7px, 1.1cqw); border-radius: 50%; background: none; border: 1.3px solid #6a5232; transition: background-color .2s; }
.frame .dots button[aria-current="true"]::after { width: max(7px, 1.1cqw); background: #9f1f1f; border-color: #9f1f1f; }
.pc-stamp { position: absolute; right: 3.6cqw; bottom: 2.6cqw; width: 13.2cqw; aspect-ratio: 4 / 5; padding: .8cqw; background: #fffaf0; transform: rotate(3deg);
  -webkit-mask: radial-gradient(circle at center, #0000 .42cqw, #000 .48cqw) -.55cqw -.55cqw / 1.1cqw 1.1cqw round, linear-gradient(#000 0 0) content-box;
  mask: radial-gradient(circle at center, #0000 .42cqw, #000 .48cqw) -.55cqw -.55cqw / 1.1cqw 1.1cqw round, linear-gradient(#000 0 0) content-box; }
.pc-stamp i { display: grid; place-items: center; height: 100%; background: linear-gradient(160deg, #1b6b4c, #0f4a34); box-shadow: inset 0 0 0 .35cqw #fffaf0, inset 0 0 0 .5cqw #b3261e; }
.pc-stamp img { width: 78%; height: auto; }
.pc-mark { position: absolute; z-index: 2; right: 9.5cqw; bottom: 3.2cqw; width: 23cqw; height: auto; color: #24345a; opacity: .78; transform: rotate(-14deg); pointer-events: none;
  -webkit-mask: var(--worn) 0 0 / 120px; mask: var(--worn) 0 0 / 120px; }
.pc-mark text { font-family: var(--font-body); font-weight: 800; text-transform: uppercase; }
.pnav { position: absolute; z-index: 3; top: calc(3cqw + (95cqw - 6cqw) / 3); transform: translateY(-50%); width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; color: #24345a; background: #fffaf0;
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 12px rgb(0 0 0 / .45); transition: background-color .2s; }
.pnav::before { content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 5px; background: repeating-conic-gradient(#b3261e 0 15deg, #fffaf0 0 30deg, #24345a 0 45deg, #fffaf0 0 60deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.pnav svg { position: relative; width: 22px; height: 22px; }
.pnav.prev { left: 0; } .pnav.next { right: 0; }
.pnav:hover { background: #ffe9b0; }
.dots { flex: none; display: flex; }
.dots button { width: 26px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.dots button::after { content: ""; width: 9px; height: 9px; border-radius: 5px; background: rgb(255 255 255 / .5); transition: width .25s, background-color .25s; }
.dots button[aria-current="true"]::after { width: 20px; background: var(--gold); }
.model h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
.model p { color: var(--soft); margin: 0 0 22px; font-size: 1.08rem; }
.spec { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.spec li { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgb(255 255 255 / .05); border: 1px solid var(--edge); font-weight: 700; font-size: .95rem; line-height: 1.3; }
.spec svg { flex: none; width: 24px; height: 24px; color: var(--gold); }

/* ---------- how to play ---------- */
.how { padding: 30px 0 60px; }
.shead { margin: 0 0 24px; }
.shead h2 { font-size: clamp(2rem, 3.8vw, 3rem); margin: 0; }
.shead p { color: var(--soft); margin: 6px 0 0; font-size: 1.06rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { position: relative; padding: 22px; border-radius: 22px; background: linear-gradient(160deg, rgb(255 255 255 / .06), rgb(255 255 255 / .02)); border: 1px solid var(--edge); }
.steps .si { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--wedge); color: var(--c); margin: 0 0 14px; box-shadow: 0 0 0 3px var(--night), 0 0 0 5px var(--c); }
.steps .si svg { width: 32px; height: 32px; }
.steps .num { position: absolute; right: 18px; top: 16px; font: 800 1rem var(--font-display); color: var(--gold); }
.steps h3 { font-size: 1.3rem; margin: 0 0 .3em; }
.steps p { margin: 0; color: var(--soft); font-size: .98rem; }

/* ---------- my wedges promo ---------- */
.make { padding: 10px 0 70px; }
.mk { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 44px; border-radius: 30px; background: radial-gradient(500px 300px at 85% 30%, rgb(255 180 80 / .14), transparent 70%), linear-gradient(140deg, #16304a, #0f2032); border: 1px solid var(--edge); }
.mk h2 { font-size: clamp(2rem, 3.4vw, 2.7rem); }
.mk p { color: var(--soft); margin: 0 0 22px; }
.mk-art { display: flex; justify-content: center; align-items: flex-end; gap: 16px; min-height: 260px; }

/* mini tag + mini wedge (previews) */
.mtag { position: relative; width: 200px; padding: 46px 16px 16px; background: linear-gradient(176deg, #fffcf4, var(--cream)); color: var(--ink); text-align: center; border-radius: 12px; clip-path: polygon(20% 0, 80% 0, 100% 14%, 100% 100%, 0 100%, 0 14%); filter: drop-shadow(0 14px 18px rgb(0 0 0 / .4)); }
.mtag::before { content: ""; position: absolute; left: 50%; top: 15px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #0e1f24; box-shadow: 0 0 0 3px #d9b56a; }
.mtag::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent 0 10px, var(--ci) 10px 14px, transparent 14px calc(100% - 14px), var(--ci) calc(100% - 14px) calc(100% - 10px), transparent calc(100% - 10px)); }
.mtag .ic { width: 40px; height: 40px; margin: 0 auto 6px; color: var(--ci); }
.mtag b { display: block; font: 800 1.2rem/1.15 var(--font-display); overflow-wrap: anywhere; }
.mtag i { display: block; font: italic 700 .95rem/1.25 var(--font-display); color: var(--ci); margin-top: 6px; overflow-wrap: anywhere; }
.mwedge { position: relative; width: 130px; height: 140px; color: var(--ci); display: grid; justify-items: center; align-content: start; }
.mwedge .wsil { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% - 28px); filter: drop-shadow(0 10px 12px rgb(0 0 0 / .35)); }
.mwedge .ic { position: relative; width: 40px; height: 40px; margin-top: 20px; }
.mwedge b { position: absolute; bottom: 0; left: -14px; right: -14px; font: 800 .88rem/1.15 var(--font-body); color: var(--snow); text-align: center; overflow-wrap: anywhere; }
.ic.img { border-radius: 50%; object-fit: cover; }
.ic.emo { display: grid; place-items: center; font-size: 30px; line-height: 1; }

/* ---------- sheets ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgb(4 10 12 / .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade .2s ease; }
.sheet { position: fixed; z-index: 41; left: 50%; bottom: 0; width: min(900px, 100%); height: min(88dvh, 860px); display: flex; flex-direction: column; transform: translateX(-50%);
  background: var(--cream); color: var(--ink); border-radius: 28px 28px 0 0; box-shadow: 0 -30px 80px rgb(0 0 0 / .5); animation: sheet-in .32s cubic-bezier(.2,.9,.3,1); }
@keyframes sheet-in { from { transform: translate(-50%, 100%); } }
.sh-head { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px max(24px, var(--sar)) 10px max(24px, var(--sal)); }
.sh-head h2 { margin: 0; font-size: 1.8rem; }
.sh-head p { margin: 2px 0 0; color: var(--ink-2); font-size: .95rem; }
.sh-x { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--cream-2); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.sh-x svg { width: 20px; height: 20px; }
.sh-body { flex: 1; overflow: auto; padding: 6px max(24px, var(--sar)) 24px max(24px, var(--sal)); overscroll-behavior: contain; }
.sh-foot { flex: none; display: flex; gap: 10px; justify-content: flex-end; padding: 12px max(24px, var(--sar)) max(16px, var(--sab)) max(24px, var(--sal)); border-top: 1px solid var(--line); background: var(--cream); }
.sheet :focus-visible { outline-color: var(--pine); }
.lbl { font: 800 .82rem/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin: 18px 0 10px; }
.presets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.preset { display: grid; gap: 8px; min-height: 84px; text-align: left; padding: 12px; border-radius: 16px; border: 1.5px solid var(--line); background: #fffaf0; cursor: pointer; color: var(--ink); }
.preset b { font: 800 1rem/1.15 var(--font-body); }
.preset .mi { display: flex; gap: 3px; flex-wrap: wrap; }
.preset .mi .ic { width: 17px; height: 17px; }
.preset[aria-pressed="true"] { border-color: var(--pine); background: #eef5ee; box-shadow: inset 0 0 0 1.5px var(--pine); }
#board { width: min(1180px, 100%); height: min(94dvh, 980px); }
.draghint { margin: -4px 0 12px; color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.setgrid { display: grid; grid-template-columns: minmax(0, 470px) 1fr; gap: 28px; align-items: start; }
.setgrid > div:first-child { position: sticky; top: 0; z-index: 3; padding: 12px; border-radius: 26px; background: radial-gradient(circle, #18324d, #0b1726 75%); box-shadow: 0 12px 30px rgb(9 19 31 / .35); }
.setgrid .selnote { color: var(--soft); }
.setgrid .selnote b { color: var(--gold); }
.setwheel { width: 100%; max-width: 460px; margin: 0 auto; aspect-ratio: 1; touch-action: manipulation; }
.setwheel .wedge { cursor: grab; }
.setwheel .wedge.drop .halo { opacity: 1; fill: #f0c45a; }
.setwheel .wedge.drop .base { fill: #fff6dc; stroke: #e8b54a; stroke-width: 5; }
#board .wp { cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#board .wp img, .setwheel image { -webkit-user-drag: none; pointer-events: none; }
#board.dragging, #board.dragging * { cursor: grabbing !important; }
.dragsrc { opacity: .35; }
.dnd-ghost { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; display: grid; justify-items: center; align-content: start; color: var(--ci); filter: drop-shadow(0 14px 18px rgb(0 0 0 / .45)); }
.dnd-ghost .wsil { width: 96px; height: 76px; }
.dnd-ghost > .ic { position: absolute; top: 20px; width: 32px; height: 32px; }
.dnd-ghost b { font: 800 .85rem/1.15 var(--font-body); color: var(--ink); background: var(--cream); padding: 2px 8px; border-radius: 99px; }
.dnd-ghost .on { display: none; }
.dnd-ghost .mwedge { width: 110px; height: 96px; }
.dnd-ghost .mwedge .wsil { width: 110px; height: 88px; }
.setwheel svg { width: 100%; height: 100%; }
.selnote { text-align: center; font-weight: 700; color: var(--ink-2); margin: 8px 0 0; }
.selnote b { color: var(--ink); }
.box { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.wp { position: relative; min-height: 116px; border: 1.5px solid transparent; border-radius: 16px; background: none; cursor: pointer; color: var(--ci); display: grid; justify-items: center; align-content: start; padding: 4px 2px 6px; }
@media (hover: hover) { .wp:hover { background: #fff7e6; } }
.wp .wsil { width: 84px; height: 70px; }
.wp .ic { position: absolute; top: 18px; width: 30px; height: 30px; }
.wp b { font: 800 .85rem/1.15 var(--font-body); color: var(--ink); margin-top: 4px; max-width: 90px; overflow-wrap: anywhere; text-align: center; }
.wp .on { position: absolute; top: 2px; right: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--pine); color: #fff; display: grid; place-items: center; }
.wp .on svg { width: 14px; height: 14px; }
.wp.add { border: 1.5px dashed #c9b188; color: var(--red); }
.wp.add .plus { width: 84px; height: 70px; display: grid; place-items: center; }
.wp.add .plus svg { width: 30px; height: 30px; }
.wp-wrap { position: relative; }
.wp-edit { position: absolute; top: 2px; left: 2px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: #fffaf0; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.wp-edit::before { content: ""; position: absolute; inset: -6px; }
.wp-edit svg { width: 15px; height: 15px; }
.mine-h { display: flex; align-items: center; justify-content: space-between; gap: 6px 10px; flex-wrap: wrap; }
.mine-acts { display: flex; gap: 4px; }
.linkbtn { min-height: 44px; border: 0; background: none; padding: 0 8px; font-weight: 800; color: var(--pine); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.linkbtn.danger { color: #9f1f1f; margin-top: 20px; padding: 0; }
.importbox { margin: 0 0 12px; padding: 14px; border-radius: 16px; background: #fffaf0; border: 1.5px solid var(--line); }
.importbox p { margin: 0 0 6px; }
.importbox ul { margin: 0 0 8px; padding-left: 1.2em; }
.importbox .warn { color: #9f1f1f; font-weight: 700; }
.importbox .row { display: flex; gap: 8px; flex-wrap: wrap; }
.importbox .btn { min-height: 44px; padding: .5em 1.1em; }
/* editor */
.prevbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 14px 10px; margin: 0 calc(-1 * max(24px, var(--sar))) 8px; background: repeating-linear-gradient(-45deg, #efe2c4 0 12px, #f4e9d1 12px 24px); border-bottom: 1px solid var(--line); transition: padding .2s; }
.prevbar .mtag { width: 180px; padding: 40px 14px 14px; filter: drop-shadow(0 8px 10px rgb(90 60 20 / .25)); }
.prevbar .mwedge { width: 104px; height: 112px; }
.prevbar .mwedge b { color: var(--ink); }
.prevbar.compact { padding: 6px 10px; }
.prevbar.compact .mtag { display: none; }
.prevbar.compact .mwedge { width: 60px; height: 44px; display: block; }
.prevbar.compact .mwedge .wsil { height: 44px; }
.prevbar.compact .mwedge .ic { width: 20px; height: 20px; margin: 10px auto 0; }
.prevbar.compact .mwedge b { position: absolute; left: 70px; right: auto; top: 12px; bottom: auto; width: max-content; max-width: 60vw; font-size: 1rem; text-align: left; }
.f { display: grid; gap: 6px; margin: 16px 0 0; }
.f > span { font-weight: 800; font-size: .95rem; display: flex; justify-content: space-between; gap: 10px; }
.f small { font-weight: 700; color: var(--ink-2); }
.inp { width: 100%; min-height: 48px; border: 1.5px solid var(--line); background: #fffaf0; border-radius: 12px; padding: .65em .85em; color: var(--ink); font-size: 1rem; }
textarea.inp { resize: none; overflow: hidden; line-height: 1.4; display: block; }
.inp:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px rgb(27 107 76 / .2); }
.hint { margin: 6px 0 0; color: #9f1f1f; font-weight: 700; font-size: .92rem; }
.icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.icons button { aspect-ratio: 1; min-height: 48px; border-radius: 14px; border: 1.5px solid var(--line); background: #fffaf0; cursor: pointer; display: grid; place-items: center; color: var(--ink); padding: 0; }
.icons button .ic { width: 28px; height: 28px; }
.icons button[aria-pressed="true"] { border-color: var(--ci); color: var(--ci); background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ci) 22%, transparent); }
.icons .up { font: 800 .78rem/1.1 var(--font-body); color: var(--ink-2); align-content: center; gap: 3px; }
.icons .up svg { width: 22px; height: 22px; }
.sw { display: flex; gap: 10px; flex-wrap: wrap; }
.sw button { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--cream); background: var(--s); cursor: pointer; box-shadow: 0 0 0 1.5px var(--line); }
.sw button[aria-checked="true"] { box-shadow: 0 0 0 3px var(--s); }
.plist { display: grid; gap: 8px; }
.plist .pr { display: flex; gap: 8px; align-items: flex-start; }
.plist .rm { flex: none; width: 48px; height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: #fffaf0; cursor: pointer; display: grid; place-items: center; color: var(--ink-2); }
.plist .rm svg { width: 18px; height: 18px; }
.addp { justify-self: start; min-height: 48px; margin-top: 8px; border: 1.5px dashed #c9b188; background: none; border-radius: 12px; padding: 0 1.1em; font-weight: 800; cursor: pointer; color: var(--ink); }

/* toast */
.toast { position: fixed; left: 50%; bottom: max(24px, calc(var(--sab) + 12px)); z-index: 95; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: .75em 1.2em; border-radius: 999px; background: var(--cream); color: var(--ink); font-weight: 800; box-shadow: 0 12px 30px rgb(0 0 0 / .4); transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- footer ---------- */
.site-footer { padding: 54px 0 max(36px, var(--sab)); border-top: 1px solid var(--edge); background: rgb(0 0 0 / .18); }
.fgrid { display: grid; grid-template-columns: 1.3fr .8fr 1.2fr; gap: 40px; }
.fgrid .brand img { width: 84px; height: 84px; }
.fgrid .wordmark { font-size: 2.2rem; }
.fgrid h2 { font-size: 1.15rem; margin: 0 0 12px; }
.fgrid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.fgrid ul a { display: inline-flex; align-items: center; min-height: 40px; color: var(--soft); text-decoration: none; font-weight: 700; }
.fgrid ul a:hover { color: var(--gold); }
.fgrid p { color: var(--muted); margin: 12px 0 0; max-width: 26em; }
.sibling { display: inline-block; padding: 11px 0; margin-top: 0; color: var(--gold); font-weight: 800; text-decoration: none; }
.sibling:hover { text-decoration: underline; }
.share-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.share-pill { display: inline-flex; align-items: center; gap: .45em; min-height: 44px; padding: .4em 1em; border-radius: 99px; cursor: pointer; border: 1px solid var(--edge); background: rgb(255 255 255 / .05); color: var(--snow); font-weight: 700; font-size: .9rem; text-decoration: none; }
.share-pill:hover { background: rgb(255 255 255 / .12); }
.share-pill svg { width: 17px; height: 17px; }
.share-pill svg.brand-ic { fill: currentColor; width: 15px; height: 15px; }
.fbot { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--edge); display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; font-size: .9rem; color: var(--muted); }
.fbot p { margin: 0; }
.fbot .priv { display: flex; align-items: center; gap: 8px; color: var(--soft); font-weight: 700; }
.fbot .priv svg { flex: none; width: 18px; height: 18px; color: #7cc59a; }

/* ---------- table mode ---------- */
.tbar, .tip { display: none; }
body.tablemode { overflow: hidden; }
body.tablemode .stagewrap { position: fixed; inset: 0; z-index: 50; background: radial-gradient(circle at 50% 50%, #18324d, #070f19 72%); }
body.tablemode .wheel { width: min(94vw - var(--sal) - var(--sar), 94dvh - var(--sat) - var(--sab)); }
body.tablemode .tbar { display: flex; position: fixed; z-index: 51; gap: 8px; align-items: center; }
body.tablemode .tip { display: flex; }
.tbar.tl { left: max(14px, var(--sal)); top: max(14px, var(--sat)); }
.tbar.tr { right: max(14px, var(--sar)); top: max(14px, var(--sat)); }
.tbar.bl { left: max(14px, var(--sal)); bottom: max(14px, var(--sab)); }
.tbar.tc { left: 50%; top: max(14px, var(--sat)); transform: translateX(-50%); }
.seg { padding: 4px; gap: 4px !important; border-radius: 999px; background: rgb(255 255 255 / .07); border: 1px solid var(--edge); }
.seg button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--soft); font-weight: 800; cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--gold); color: #2a1d05; }
body.tablemode .turnbar { display: none; }
body.tablemode.tflat .turnbar { display: flex; gap: 12px; }
.turnbar .pill.sq { width: 76px; min-height: 76px; border: 2px solid var(--gold); background: rgb(240 196 90 / .16); color: var(--gold); }
.turnbar .pill.sq svg { width: 36px; height: 36px; }
.tbar.br { right: max(14px, var(--sar)); bottom: max(14px, var(--sab)); }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: rgb(255 255 255 / .07); border: 1px solid var(--edge); font-weight: 800; font-size: .9rem; color: var(--soft); max-width: 46vw; }
.chip i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.chip.ok i { background: #7cc59a; box-shadow: 0 0 8px #7cc59a; }
.chip.warn i { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.tip { position: fixed; z-index: 51; left: 50%; top: calc(max(14px, var(--sat)) + 62px); transform: translateX(-50%); align-items: center; gap: 6px; margin: 0; padding: 4px 4px 4px 14px; border-radius: 999px; background: var(--cream); color: var(--ink); font-weight: 700; font-size: .9rem; max-width: 50vw; }
.tip-x { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--cream-2); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.tip-x svg { width: 16px; height: 16px; }
body.dim .wheel > svg { filter: brightness(.72) saturate(.9); }
body.dim .bulb { animation: none; opacity: .55; }
body.dim .wheel::before { opacity: .4; }

/* ---------- responsive ---------- */
/* desktop: the whole wheel and its buttons stay above the fold on a 1280×800 laptop */
@media (min-width: 981px) { .wheel { width: min(620px, 100%, 100dvh - 385px); min-width: 380px; } body.tablemode .wheel { min-width: 0; } }

@media (max-width: 980px) {
  .nav { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "wheel" "more"; padding-top: 4px; }
  .intro { padding-top: 4px; text-align: center; }
  .lead-d { display: none; }
  .lead-m { display: block; text-align: center; margin-inline: auto; }
  .eyebrow { justify-content: center; font-size: 1.08rem; margin-bottom: 6px; }
  .more { margin-top: 34px; }
  .model-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .mk { grid-template-columns: minmax(0, 1fr); padding: 30px 22px; }
  .fgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .f-share { grid-column: 1 / -1; }
  .setgrid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .setgrid > div:first-child { padding: 8px; margin: 0 auto; width: min(100%, 320px); }
  .selnote { font-size: .88rem; margin-top: 4px !important; }
}
@media (max-width: 600px) {
  .top { padding-top: calc(12px + var(--sat)); gap: 8px; }
  .brand { gap: 10px; }
  .brand img { width: 72px; height: 72px; }
  .wordmark { font-size: 1.7rem; }
  .wordmark small { display: none; }
  .share-btn { width: 44px; padding: 0; justify-content: center; }
  .share-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .share-panel { position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: auto; z-index: 60; border-radius: 24px 24px 0 0; padding: 20px 16px max(20px, var(--sab)); animation: sheet-up .3s cubic-bezier(.2,.8,.3,1); }
  @keyframes sheet-up { from { transform: translateY(100%); } }
  .share-scrim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 59; background: rgb(4 10 12 / .55); }
  .pop-panel { position: fixed; left: 12px; right: 12px; top: calc(76px + var(--sat)); width: auto; }
  .hero h1 { font-size: 2rem; }
  .ask { font-size: 1.12rem; margin-bottom: 6px; }
  .ask small { display: none; }
  .table-btn { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .spec { grid-template-columns: minmax(0, 1fr); }
  .fgrid { grid-template-columns: minmax(0, 1fr); }
  .pnav { width: 42px; height: 42px; } .pnav::before { padding: 4px; } .pnav svg { width: 19px; height: 19px; }
  .sheet { height: 92dvh; }
  .sh-head { padding: 16px max(16px, var(--sar)) 8px max(16px, var(--sal)); }
  .sh-body { padding: 4px max(16px, var(--sar)) 20px max(16px, var(--sal)); }
  .sh-foot { padding: 10px max(16px, var(--sar)) max(14px, var(--sab)) max(16px, var(--sal)); }
  .sh-foot .btn { flex: 1; padding-inline: .8em; }
  .prevbar { margin: 0 calc(-1 * max(16px, var(--sar))) 6px; gap: 12px; }
  .prevbar .mtag { width: 150px; padding: 36px 10px 12px; }
  .prevbar .mtag b { font-size: 1.02rem; }
  .prevbar .mtag i { font-size: .85rem; }
  .prevbar .mwedge { width: 92px; height: 104px; }
  .card-x { top: 92px; right: 30px; }
  .tag { border-width: 132px 22px 100px; border-image-width: 132px 22px 100px; padding: 0 6px; }
  .tag .hd { margin-top: -46px !important; }
  .mk-art { transform: scale(.92); }
}
@media (max-width: 400px) {
  .tag .meta .long { display: none; }
  .tag .meta .short { display: inline; }
  .wtools .pill { padding: .5em .8em; font-size: .9rem; gap: .4em; }
  .wtools .pill svg { width: 16px; height: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .snow { display: none; }
}

/* round 4 fine-tuning */
.tag::before { display: none; }
.tag { min-height: 420px; }
.draghint { margin: 0 0 14px; }
#box-wrap > .lbl:first-child { margin-top: 4px; }
@media (min-width: 981px) { .setwheel { max-width: min(440px, 94dvh - 330px); } }
.wp .wsil path:first-child { stroke: rgb(120 90 40 / .28); stroke-width: 1.5; }
@media (max-width: 760px) { .tbar.tc { top: calc(max(14px, var(--sat)) + 58px); } .tip { top: calc(max(14px, var(--sat)) + 116px); } }

/* round 6: GPT kraft tag (img/kraft-tag-*.webp, tools/build_ring_tag.py), landscape with the eyelet on the left.
   9-slice in 1x image px: top 125 (cut corner + holly), right 150, bottom 83, left 75; the middle band is stored
   twice (as is + mirrored) and tiled with "round", so tall cards repeat a seamless band and nothing stretches.
   --k scales the slices to the card's width (580 px image width -> card width). */
.twine { display: none; }
.tag { --k: .74; min-height: 0; padding: 30px 40px 26px 66px;
  border: 1px solid transparent; border-image-source: url("../img/kraft-tag-580.webp");
  border-image-source: image-set(url("../img/kraft-tag-580.webp") 1x, url("../img/kraft-tag-1160.webp") 2x);
  border-image-slice: 125 150 83 75 fill; border-image-repeat: round;
  border-image-width: calc(125px * var(--k)) calc(150px * var(--k)) calc(83px * var(--k)) calc(75px * var(--k));
  filter: drop-shadow(0 22px 30px rgb(0 0 0 / .55)); }
.tag .eye { display: block; position: absolute; left: 0; top: 50%; width: calc(70px * var(--k)); height: calc(70px * var(--k)); translate: 0 -50%; pointer-events: none;
  background: image-set(url("../img/kraft-eye-70.webp") 1x, url("../img/kraft-eye-140.webp") 2x) center / 100% 100% no-repeat; }
.tag .hd { margin-top: 0 !important; padding-right: 34px; }
.tag .meta { border-top-color: rgb(110 75 30 / .35); }
.tag .to, .tag .meta { color: #5a4126; }
.tag .ans { background: #fbf3e2; }
.card-x { top: -14px; right: -8px; box-shadow: 0 4px 12px rgb(0 0 0 / .35); }
@media (max-width: 520px) {
  .tag { --k: .6; padding: 24px 22px 22px 48px; border-width: 1px; }
  .tag .hd { margin-top: 0 !important; padding-right: 30px; }
  .card-x { top: -14px; right: -6px; }
}
header { z-index: 5; }
body.tablemode header { z-index: 1; visibility: hidden; }

/* round 9: saved quick picks — a gold-edged card with a star seal, an edit button like the custom-wedge tiles */
.pk-wrap { position: relative; display: grid; }
.preset.mine { position: relative; padding-right: 44px; border-color: #d9b866; background: linear-gradient(170deg, #fffaf0 55%, #fbefd2); box-shadow: inset 0 0 0 3px #fffaf0, inset 0 0 0 4px rgb(184 132 41 / .35); }
.preset.mine[aria-pressed="true"] { border-color: var(--pine); background: #eef5ee; box-shadow: inset 0 0 0 1.5px var(--pine), inset 0 0 0 4px #eef5ee, inset 0 0 0 5px rgb(27 107 76 / .3); }
.preset.mine b { overflow-wrap: anywhere; }
.pk-star { position: absolute; top: -9px; left: -7px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff6d8;
  background: radial-gradient(circle at 35% 30%, #f6d98e, #b88429 70%, #8a5f16); box-shadow: 0 2px 5px rgb(60 40 5 / .35), 0 0 0 2px var(--cream); }
.pk-star svg { width: 14px; height: 14px; }
.pk-edit { left: auto; right: 6px; top: 6px; }
.preset .mi .gone { width: 17px; height: 17px; border-radius: 50%; border: 1.5px dashed #b9a17a; box-sizing: border-box; }
.preset.add { border: 1.5px dashed #c9b188; background: none; color: var(--red); align-content: center; justify-items: start; grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.preset.add .plus { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fbe9d0; }
.preset.add .plus svg { width: 18px; height: 18px; }
.preset.add b { color: var(--ink); }
.preset.add[aria-expanded="true"], .pk-edit[aria-expanded="true"] { border-style: solid; border-color: var(--pine); }
@media (hover: hover) { .preset.add:hover, .preset.mine:hover { background: #fff7e6; } }
.pickbox { margin: 12px 0 0; border-color: #d9b866; box-shadow: inset 0 0 0 3px #fffaf0, inset 0 0 0 4px rgb(184 132 41 / .3); }
.pk-lbl { display: block; font-weight: 800; margin: 0 0 6px; }
.pk-in { position: relative; }
.pk-in .inp { padding-right: 4.6em; }
.pk-in .count { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: .82rem; color: var(--ink-2); pointer-events: none; }
.pk-prev { margin: 10px 0 12px; } .pk-prev .mi { display: flex; gap: 6px; } .pk-prev .mi .ic, .pk-prev .mi .gone { width: 22px; height: 22px; }
.pickbox .row { margin-top: 10px; align-items: center; }
.pickbox .linkbtn.danger { margin: 0 0 0 auto; padding: 0 6px; }
.pickbox .warn { margin: 8px 0 0; }
.pk-note { margin: 10px 0 0; font-size: .9rem; color: var(--ink-2); }

/* round 11 (S2), round 12 (P1: small seal, cancel lines run out of the ring): the hero tagline as a slogan postmark. Date ring (brand + translated place, decorative) + wavy cancel lines. */
.pmark { display: inline-flex; align-items: center; gap: 0; margin: 0 0 16px; color: #e6ecf2; font-style: normal; transform: rotate(-1.6deg);
  -webkit-mask: var(--worn) 0 0 / 140px, var(--worn2) 0 0 / 300px 100%; -webkit-mask-composite: source-in; mask: var(--worn) 0 0 / 140px, var(--worn2) 0 0 / 300px 100%; mask-composite: intersect; }
.pmark::before { content: none; }
.pm-ring { flex: none; width: 48px; height: 48px; overflow: visible; position: relative; z-index: 1; }
.pm-ring text { font-family: var(--font-body); font-weight: 800; text-transform: uppercase; }
.pm-slog { position: relative; margin-left: -9px; padding: 10px 6px 10px 18px; font: 800 .8rem/1.3 var(--font-body); letter-spacing: .18em; text-transform: uppercase; text-wrap: balance; text-align: left; max-width: 34em; }
.pm-slog::before, .pm-slog::after { content: ""; position: absolute; left: 0; right: -10px; height: 9px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='9'%3E%3Cpath d='M0 2.5q6-3 12 0t12 0M0 6.5q6-3 12 0t12 0' fill='none' stroke='%23e6ecf2' stroke-width='1.25'/%3E%3C/svg%3E") repeat-x 0 0 / 24px 9px; }
.pm-slog::before { top: 0; } .pm-slog::after { bottom: 0; }
@media (max-width: 980px) { .pmark { margin-bottom: 10px; } }
@media (max-width: 600px) { .pm-ring { width: 40px; height: 40px; } .pm-slog { font-size: .66rem; letter-spacing: .13em; padding: 9px 2px 9px 14px; max-width: calc(100vw - 32px - 40px); } }

/* round 11: a small "Christmas Edition" stamp on the wordmark (fine worn ink, tilted, sitting just above the wordmark, right-aligned; left-aligned on phones so it grows away from the buttons) */
.wordmark > span { position: relative; }
.ed { position: absolute; right: -.15em; bottom: 100%; margin-bottom: .1em; transform: rotate(-4deg); transform-origin: 100% 100%; padding: .3em .6em .28em; border: 1px solid currentColor; border-radius: 3px; white-space: nowrap; pointer-events: none;
  font: 800 .205em/1 var(--font-body); font-style: normal; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); opacity: .92;
  -webkit-mask: var(--worn) 0 0 / 110px; mask: var(--worn) 0 0 / 110px; }
@media (max-width: 600px) { .ed { left: 0; right: auto; transform-origin: 0 100%; font-size: .25em; letter-spacing: .1em; padding: .3em .5em .28em; } }
@media (max-width: 340px) { .ed { display: none; } }
