:root {
    --paper: #FFF4E0; --ink: #141414; --tomato: #FF5B3A; --butter: #FFD23F;
    --sky: #8FD3FF; --mint: #9BE7C4; --lilac: #C9B6FF; --peach: #FFB4A2;
    --display: 'Bricolage Grotesque', system-ui, sans-serif;
    --body: 'Figtree', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    min-height: 100vh; color: var(--ink); background: var(--butter);
    font-family: var(--body); font-size: 17px; line-height: 1.5;
    background-image: radial-gradient(rgba(20,20,20,.09) 1.5px, transparent 1.5px);
    background-size: 22px 22px;
}
a { color: var(--ink); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--butter); padding: 10px 16px; z-index: 9; font-weight: 700; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.top { max-width: 620px; margin: 0 auto; padding: 18px 16px 0; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 18px; text-decoration: none; letter-spacing: -.01em; }
.wordmark b { background: var(--ink); color: var(--butter); padding: 1px 7px; border-radius: 7px; }

main { max-width: 620px; margin: 0 auto; padding: 22px 16px 40px; outline: none; }
.screen[hidden] { display: none; }

.tag {
    display: inline-block; background: var(--ink); color: var(--butter);
    font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
    padding: 7px 14px; border-radius: 99px; transform: rotate(-2deg); margin-bottom: 16px;
}
h1 {
    font-family: var(--display); font-weight: 800; letter-spacing: -.03em;
    font-size: clamp(34px, 9vw, 58px); line-height: 1.02; margin-bottom: 10px;
}
h1 span { background: var(--tomato); padding: 0 .12em; border-radius: 10px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lede { font-size: 18px; font-weight: 600; margin-bottom: 18px; }
.hero[hidden] { display: none; }
.fine { font-size: 14px; margin-top: 10px; }

.btn {
    font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; color: var(--ink);
    border: 3px solid var(--ink); border-radius: 14px; padding: 12px 20px; background: #fff;
    box-shadow: 4px 4px 0 var(--ink); transition: transform .08s ease, box-shadow .08s ease;
    text-decoration: none; display: inline-block;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-go { background: var(--tomato); }

.vs {
    background: var(--paper); border: 3px dashed var(--ink); border-radius: 16px;
    padding: 14px 16px; margin-bottom: 20px; font-weight: 600;
}

.card {
    background: var(--paper); border: 3px solid var(--ink); border-radius: 22px;
    box-shadow: 7px 7px 0 var(--ink); padding: 22px 20px;
}
.kicker { font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 7vw, 34px); line-height: 1.05; letter-spacing: -.02em; margin-bottom: 18px; outline: none; }
h3 { font-family: var(--display); font-weight: 800; font-size: 22px; margin-bottom: 2px; }

/* Result */
.result { text-align: center; }
.result h2 { font-size: clamp(34px, 10vw, 52px); margin-bottom: 10px; }
.arch-line { font-size: 18px; font-weight: 600; margin-bottom: 18px; }
.arch-tip { font-size: 15px; background: #fff; border: 2.5px solid var(--ink); border-radius: 14px; padding: 12px 14px; text-align: left; }
.compare { margin-top: 18px; font-weight: 700; font-size: 17px; background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: 14px 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 6px; }
.actions .btn { flex: 1 1 160px; text-align: center; }
.copied { font-weight: 700; min-height: 1.5em; margin-bottom: 14px; }
.pack { margin-top: 8px; }
.pack ul { list-style: none; margin: 12px 0 20px; display: grid; gap: 10px; }
.pack li { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 2.5px solid var(--ink); border-radius: 14px; padding: 10px 12px; }
.pack li .nm { font-weight: 700; }
.pack li small { display: block; font-weight: 400; font-size: 13.5px; }
.shop { flex-shrink: 0; font-weight: 700; font-size: 14px; text-decoration: none; background: var(--butter); border: 2.5px solid var(--ink); border-radius: 10px; padding: 7px 11px; box-shadow: 2px 2px 0 var(--ink); }
.shop:hover { background: var(--tomato); }
.disclose { font-size: 13.5px; }
.again { margin-top: 22px; }

.foot { max-width: 620px; margin: 0 auto; padding: 0 16px 34px; font-size: 13.5px; }
.foot p + p { margin-top: 4px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* product photos / icons */
.opt-thumb, .pack-thumb {
    flex-shrink: 0; position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: var(--paper); border: 2.5px solid var(--ink); border-radius: 12px;
}
.opt-thumb { width: 96px; height: 96px; }
.pack-thumb { width: 56px; height: 56px; background: #fff; }
.thumb-ico { font-size: 26px; line-height: 1; }
.opt-thumb .thumb-ico { font-size: 46px; }
.has-img { background: #fff; }
.has-img img { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); object-fit: contain; opacity: 0; transition: opacity .2s; }
.has-img.loaded img { opacity: 1; }
.has-img.loaded .thumb-ico { visibility: hidden; }
.pack li { justify-content: flex-start; }
.pack-txt { flex: 1; min-width: 0; }
.disclose-top { font-size: 14px; font-weight: 600; background: #fff; border: 2px dashed var(--ink); border-radius: 12px; padding: 8px 12px; margin: 10px 0 2px; }
.foot .assoc { font-weight: 600; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* progress: kicker + the pack filling up */
.progress { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 8px; }
.progress .kicker { margin: 0; }
.tray { list-style: none; display: flex; gap: 5px; }
.slot { width: 30px; height: 30px; border: 2px dashed var(--ink); border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 17px; line-height: 1; }
.slot.full { border-style: solid; background: var(--butter); animation: pop .35s cubic-bezier(.3,1.6,.5,1); }

/* this or that */
.opts { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.opt {
    font: inherit; cursor: pointer; color: var(--ink); text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    background: #fff; border: 3px solid var(--ink); border-radius: 18px; padding: 16px 10px 14px;
    box-shadow: 4px 4px 0 var(--ink); transition: transform .08s ease, box-shadow .08s ease, background .15s, opacity .15s;
}
.opt:hover { transform: translate(-1px, -1px) rotate(-.6deg); box-shadow: 5px 5px 0 var(--ink); }
.opt:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.opt .lbl { flex: 1; font-weight: 700; font-size: 16px; line-height: 1.25; }
.opt .cost { font-family: var(--display); font-weight: 800; font-size: 15px; background: var(--butter); border: 2px solid var(--ink); border-radius: 9px; padding: 0 8px; }
.or {
    position: absolute; left: 50%; top: 58px; transform: translate(-50%, 0) rotate(-6deg); z-index: 1;
    font-family: var(--display); font-weight: 800; font-size: 15px; text-transform: uppercase;
    background: var(--ink); color: var(--butter); border-radius: 99px; padding: 5px 9px; pointer-events: none;
}
.opts.done .opt { cursor: default; opacity: .4; transform: none; box-shadow: 4px 4px 0 var(--ink); }
.opts.done .opt.picked { opacity: 1; background: var(--mint); transform: rotate(-1.2deg); }
.opts.done .or { display: none; }

/* reveal after a pick */
.reveal { margin-top: 16px; padding-top: 14px; border-top: 3px dashed var(--ink); animation: fade .3s ease; }
.react { font-weight: 600; font-size: 17px; outline: none; margin-bottom: 12px; }
.react .friend { display: block; margin-top: 6px; font-weight: 700; }
.disclose-mini { font-size: 13px; margin-bottom: 6px; }
.pick-row { display: flex; align-items: center; gap: 12px; background: #fff; border: 2.5px solid var(--ink); border-radius: 14px; padding: 10px 12px; margin-bottom: 14px; }
.pick-row .nm { font-weight: 700; display: block; line-height: 1.25; }
.pick-row small { display: block; font-size: 13.5px; }
.reveal .btn { width: 100%; }
.pick-row .shop { font-size: 15px; padding: 9px 13px; background: var(--tomato); }
.pick-row .shop:hover { background: var(--butter); }

@media (max-width: 360px) { .opt-thumb { width: 76px; height: 76px; } .opt .lbl { font-size: 15px; } .or { top: 48px; } .slot { width: 26px; height: 26px; } }
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
