:root{--cream:#fff7e6;--ink:#211734;--muted:#61596d;--purple:#5c33c5;--lilac:#d7c7ff;--yellow:#ffdb39;--mint:#aceed1;--peach:#ffc4a9;--paper:#fffefa;--line:#211734;--shadow:0 5px 0 var(--ink);color:var(--ink);background:var(--cream);font-synthesis:none;font-family:-apple-system,BlinkMacSystemFont,Apple SD Gothic Neo,Malgun Gothic,sans-serif}*{box-sizing:border-box}body{word-break:keep-all;margin:0;font-size:16px;line-height:1.55}button,input,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--purple);outline-offset:4px}a{color:var(--purple)}button{border:0}h1,h2,h3,p{margin:0}img{object-fit:contain;max-width:100%}[hidden]{display:none!important}.skip{z-index:20;background:#fff;padding:14px;position:fixed;top:-100px}.skip:focus{top:10px}.topbar{border-bottom:2px solid var(--ink);justify-content:space-between;align-items:center;max-width:1240px;margin:auto;padding:20px 28px;display:flex}.brand{letter-spacing:-.06em;align-items:center;gap:10px;font-size:23px;font-weight:900;display:flex}.brand img{border-radius:13px}.web-badge{background:var(--lilac);border:1px solid var(--ink);letter-spacing:0;border-radius:6px;padding:2px 6px;font-size:11px}.topbar nav{gap:12px;display:flex}.text-button{background:0 0;padding:8px 0}.icon-button{background:0 0;border-radius:14px;justify-content:center;align-items:center;gap:7px;min-width:44px;min-height:44px;display:flex}.icon-button span{font-size:14px;font-weight:700}main{max-width:1200px;margin:auto;padding:32px 24px 80px}.home-layout{grid-template-columns:290px 1fr;gap:38px;display:grid}.intro-panel{flex-direction:column;align-self:start;gap:20px;padding-top:14px;display:flex;position:sticky;top:28px}.eyebrow{color:var(--purple);margin-bottom:12px;font-size:13px;font-weight:700}h1{letter-spacing:-.07em;font-size:34px;font-weight:900;line-height:1.3}h1 em{color:var(--purple);font-style:normal}.intro-panel p:not(.eyebrow){color:var(--muted);margin-top:16px}.friends{filter:drop-shadow(0 9px #21173412);height:215px}.goal-pill{border:2px solid var(--ink);background:var(--mint);text-align:left;box-shadow:0 3px 0 var(--ink);border-radius:18px;padding:13px 16px;font-weight:700}.section-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px;display:flex}h2{letter-spacing:-.05em;font-size:25px;font-weight:900}.count-pill{background:var(--yellow);border:1px solid var(--ink);white-space:nowrap;border-radius:100px;padding:5px 10px;font-size:13px}.store-row{flex-wrap:wrap;gap:8px;display:flex}.store{background:var(--paper);border:1.5px solid var(--ink);border-radius:12px;min-height:44px;padding:9px 15px;font-weight:800}.store.active{background:var(--purple);color:#fff;box-shadow:0 3px 0 var(--ink)}.small{font-size:13px}.muted{color:var(--muted)}#stock-note{margin:12px 0 18px}.search{background:var(--paper);border:2px solid var(--ink);border-radius:18px;align-items:center;gap:12px;margin:15px 0 20px;padding:9px 16px;display:flex}.search span{font-size:28px}.search input{color:var(--ink);background:0 0;border:0;outline:none;width:100%;min-width:0;min-height:36px}.categories{gap:10px;margin-bottom:12px;padding-bottom:10px;display:flex;overflow:auto}.category{white-space:nowrap;background:0 0;border:1.5px solid #0000;border-radius:30px;min-height:44px;padding:10px 15px;font-weight:800}.category.active{border-color:var(--ink);background:var(--lilac)}.collection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 16px;display:grid}.collection-card{text-align:left;border:2px solid var(--ink);background:var(--paper);min-height:130px;box-shadow:var(--shadow);border-radius:23px;align-items:center;gap:14px;padding:16px;transition:transform .15s;display:flex}.collection-card:hover{transform:translateY(-3px)}.collection-card img{flex-shrink:0;width:74px;height:92px}.collection-card strong{letter-spacing:-.04em;font-size:17px;line-height:1.4;display:block}.collection-card small{color:var(--muted);margin-top:8px;font-size:13px;display:block}.collection-card>span:last-child{margin-left:auto;font-size:23px}.site-footer{max-width:1200px;color:var(--muted);border-top:1px solid #21173433;justify-content:space-between;gap:12px;margin:0 auto;padding:24px;font-size:13px;display:flex}dialog{border:2px solid var(--ink);background:var(--cream);color:var(--ink);border-radius:24px;width:min(620px,100% - 24px);max-height:calc(100dvh - 36px);padding:22px;box-shadow:0 12px #21173444}dialog::backdrop{backdrop-filter:blur(4px);background:#21173488}.modal-top{justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px;display:flex}.toast{background:var(--ink);color:#fff;z-index:30;border-radius:16px;max-width:calc(100% - 30px);padding:12px 20px;position:fixed;bottom:30px;left:50%;transform:translate(-50%)}.notice{background:var(--peach);border-radius:18px;padding:18px}.desktop-only{display:block}@media (width<=850px){.home-layout{grid-template-columns:1fr;gap:20px}.intro-panel{grid-template-columns:1fr 110px;align-items:center;gap:12px;padding:0;display:grid;position:static}.intro-panel h1{font-size:27px}.eyebrow{margin-bottom:6px;font-size:12px}.intro-panel p:not(.eyebrow){margin-top:8px;font-size:14px}.friends{width:110px;height:140px}.goal-pill{grid-column:1/-1;font-size:14px}.desktop-only{display:none}.topbar{padding:14px 18px}.brand{font-size:21px}.brand img{width:34px;height:34px}.topbar nav{gap:8px}.topbar .icon-button span{display:none}main{padding:22px 18px 65px}.collection-card{gap:10px;min-height:117px;padding:14px}.collection-card img{width:60px;height:80px}.collection-card strong{font-size:16px}.collection-card>span:last-child{display:none}.site-footer{flex-direction:column;padding:20px}.site-footer button{text-align:left}}@media (width<=500px){.collection-grid{grid-template-columns:1fr}.collection-card{min-height:106px}.collection-card img{width:75px;height:78px}.collection-card>span:last-child{display:block}.store-row{gap:6px}.store{padding:8px 12px;font-size:14px}.category{padding:9px 11px;font-size:14px}.search{margin:14px 0}.intro-panel{grid-template-columns:1fr 92px}.friends{width:92px}.intro-panel h1{font-size:25px}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.primary,.secondary,.undo{border:2px solid var(--ink);background:var(--paper);min-height:50px;box-shadow:0 4px 0 var(--ink);border-radius:18px;justify-content:center;align-items:center;gap:10px;padding:12px 18px;font-weight:850;line-height:1.35;display:inline-flex}.primary{background:var(--yellow)}.primary:active,.secondary:active,.undo:active{box-shadow:0 1px 0 var(--ink);transform:translateY(3px)}.full-width{width:100%;margin-top:20px}.game-top{justify-content:space-between;align-items:center;gap:18px;max-width:780px;margin:0 auto;display:flex}.game-top h1{margin:8px 0;font-size:30px}.game-top p{font-size:14px}.back-home{color:var(--muted);font-size:14px;font-weight:700}.overview-button{border:1.5px solid var(--ink);background:var(--lilac);white-space:nowrap;border-radius:100px;min-height:44px;padding:12px 16px;font-weight:800}.game-progress{max-width:780px;color:var(--purple);justify-content:space-between;gap:10px;margin:18px auto 24px;font-size:14px;display:flex}.game-content{max-width:600px;margin:auto;padding-bottom:70px}#game-view:has(.bracket-scroll) .game-content,#game-view:has(.all-foods) .game-content{max-width:900px}.screen-hint{color:var(--purple);margin-bottom:18px;font-weight:750}.food-card{border:2px solid var(--ink);background:var(--paper);box-shadow:0 6px 0 var(--ink);transform-origin:50% 70%;border-radius:28px;animation:.2s ease-out card-enter;overflow:hidden}.swipeable{touch-action:pan-y;-webkit-user-select:none;user-select:none}.food-art{background:#fff;border-radius:18px;justify-content:center;align-items:center;height:180px;margin:14px 14px 0;display:flex;position:relative}.food-art img{pointer-events:none;max-width:65%;height:155px}.status-badge{border:1.5px solid var(--ink);background:var(--mint);border-radius:100px;padding:6px 10px;font-size:13px;font-weight:800;position:absolute;top:0;right:0}.swipe-stamp{background:var(--yellow);border:3px solid var(--ink);opacity:0;pointer-events:none;border-radius:12px;padding:10px 18px;font-size:27px;font-weight:900;position:absolute;top:30px;left:15px;transform:rotate(-13deg)}.food-body{padding:18px 24px 24px}.food-pack{color:var(--muted);margin-bottom:4px;font-size:13px}.food-body h2{letter-spacing:-.055em;overflow-wrap:anywhere;font-size:30px;line-height:1.3}.basis{color:var(--muted);margin:12px 0 18px;font-size:13px}.food-priority{color:var(--purple);margin-bottom:10px;font-size:19px;line-height:1.5}.food-reason{font-size:17px;line-height:1.65}.tradeoff{background:#ffdecc;border-radius:14px;margin-top:14px;padding:12px 14px;font-size:14px;line-height:1.65}.label-details{border-top:1px solid #2117342b;margin-top:18px;padding-top:10px;font-size:14px}.label-details summary,.all-evidence summary{cursor:pointer;min-height:44px;padding:10px 0;font-weight:800}.label-details>:not(summary){margin-top:12px}.nutrient-list{margin:0}.nutrient-list>div{border-bottom:1px solid #21173418;justify-content:space-between;gap:14px;padding:7px 0;display:flex}.nutrient-list dd{font-variant-numeric:tabular-nums;margin:0}.source-links{flex-wrap:wrap;gap:10px 20px;margin-top:16px;display:flex}.source-links a{align-items:center;min-height:44px;font-size:14px;display:flex}.all-evidence{margin-top:26px}.all-evidence>p{margin:14px 0;font-size:16px}.conditional-list{gap:14px;margin:20px 0;display:grid}.conditional-list section{border:1.5px solid var(--ink);background:var(--mint);border-radius:18px;padding:18px}.conditional-list h3{font-size:17px}.conditional-list p{margin-top:10px}.choice-names{font-weight:800}.game-dock{background:var(--cream);border-top:2px solid var(--ink);width:min(650px,100%);padding:14px 20px max(12px,env(safe-area-inset-bottom));z-index:8;position:fixed;bottom:0;left:50%;transform:translate(-50%)}.game-dock>div{gap:12px;display:flex}.game-dock .primary,.game-dock .secondary{flex:1;min-height:64px;font-size:18px}.game-dock .undo{min-width:64px;padding:8px;font-size:30px}.game-dock p{text-align:center;color:var(--muted);margin-top:12px;font-size:12px;line-height:1.4}.match-banner{background:var(--lilac);border:2px solid var(--ink);box-shadow:0 4px 0 var(--ink);border-radius:20px;align-items:center;gap:14px;margin-bottom:20px;padding:10px 16px;display:flex}.match-banner>strong{text-align:center;min-width:42px;font-size:15px;line-height:1.4}.match-banner button{text-align:left;background:0 0;border-left:1px solid #2117343a;flex:1;justify-content:space-between;align-items:center;gap:16px;min-height:48px;padding:4px 0 4px 16px;display:flex}.match-banner small{margin-bottom:2px;font-size:12px;display:block}.match-banner b{font-size:16px}.match-banner button>span:last-child{font-size:28px}.in-match .food-art{height:126px}.in-match .food-art img{height:110px}.winner-panel{background:var(--yellow);border:2px solid var(--ink);box-shadow:0 5px 0 var(--ink);border-radius:22px;align-items:center;gap:18px;margin-bottom:24px;padding:22px;display:flex}.winner-panel>span{font-size:42px}.winner-panel>span:last-child{margin-left:auto;font-size:28px}.winner-panel h2{font-size:28px}.winner-panel p:last-child{margin-top:6px;font-size:14px}.winner-panel .eyebrow{color:var(--ink);letter-spacing:.08em;margin-bottom:3px;font-size:11px}.winner-line{background:var(--yellow);border:2px solid var(--ink);border-radius:18px;margin:22px 0;padding:18px;font-size:18px}.overview-tabs{gap:10px;margin-bottom:20px;display:flex}.overview-tabs button{border:1.5px solid var(--ink);background:0 0;border-radius:12px;min-height:44px;padding:10px 18px;font-weight:800}.overview-tabs button.active{background:var(--lilac)}.tree-hint{margin-bottom:20px}.bracket-scroll{scrollbar-color:var(--purple) var(--lilac);overscroll-behavior-x:contain;padding:6px 4px 20px;overflow-x:auto}.bracket{position:relative}.bracket svg{pointer-events:none;position:absolute;inset:0}.bracket path{fill:none;stroke:#21173444;stroke-width:2px}.bracket path.resolved{stroke:var(--purple);stroke-width:3px}.round-label{text-align:center;background:var(--lilac);border-radius:100px;padding:5px;font-size:15px;position:absolute;top:0}.bracket-match{border:1.5px solid var(--ink);background:var(--paper);border-radius:14px;min-height:120px;position:absolute;overflow:hidden}.bracket-match.current-match{border:3px solid var(--purple);box-shadow:0 3px 0 var(--purple)}.bracket-match p{background:var(--cream);justify-content:space-between;padding:5px 10px;font-size:12px;line-height:1.4;display:flex}.bracket-match button{text-align:left;background:0 0;border-top:1px solid #21173425;align-items:center;gap:8px;width:100%;min-height:44px;padding:6px 10px;font-size:13px;line-height:1.3;display:flex}.bracket-match button:disabled{opacity:.55}.bracket-match .advances{background:var(--mint);font-weight:800}.bracket-match button>span:first-child{color:var(--purple);font-size:21px}.all-foods{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.mini-food{background:var(--paper);border:1.5px solid var(--ink);text-align:left;border-radius:17px;align-items:center;gap:14px;width:100%;padding:14px;display:flex}.mini-food img{width:60px;height:68px}.mini-food strong{font-size:16px;line-height:1.4;display:block}.mini-food small{color:var(--muted);margin-top:6px;font-size:13px;display:block}.mini-food>span:last-child{margin-left:auto}.mini-food.champion{background:var(--yellow)}.overview-actions{flex-wrap:wrap;gap:12px;margin-top:24px;display:flex}.goal-options{gap:12px;margin:20px 0;display:grid}.goal-option{border:1.5px solid var(--ink);background:var(--paper);cursor:pointer;border-radius:17px;align-items:center;gap:14px;padding:14px;display:flex}.goal-option:has(input:checked){background:var(--mint)}.goal-option input{width:23px;height:23px;accent-color:var(--purple);flex-shrink:0}.goal-option strong{font-size:16px;display:block}.goal-option small{color:var(--muted);font-size:13px}.severe-option{background:#ffe8dc}.severe-option:has(input:checked){background:var(--peach)}.history-list{gap:12px;margin:20px 0;display:grid}.empty-panel{text-align:center;border:2px solid var(--ink);background:var(--lilac);border-radius:24px;grid-column:1/-1;padding:36px 22px}.empty-panel p{color:var(--muted);margin:12px 0 20px}.empty-panel .primary,.empty-panel .secondary{margin:5px}.big-symbol{font-size:44px}.modal-actions{gap:14px;margin-top:24px;display:flex}.about-copy p{margin:14px 0}.about-copy h3{font-size:18px}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@keyframes card-enter{0%{opacity:.5;transform:translateY(10px)rotate(1deg)}to{opacity:1;transform:none}}@media (width<=650px){.game-top h1{font-size:26px}.game-top{gap:10px}.game-top p{font-size:13px}.overview-button{padding:11px 13px;font-size:14px}.game-progress{margin:14px auto 19px;font-size:13px}.food-art{height:143px}.food-art img{height:125px}.food-body{padding:15px 18px 20px}.food-body h2{font-size:27px}.food-reason{font-size:16px}.basis{margin:10px 0 14px}.food-priority{font-size:18px}.in-match .food-art{height:90px}.in-match .food-art img{height:82px}.game-dock{padding-left:16px;padding-right:16px}.game-dock .primary,.game-dock .secondary{min-height:58px;padding:10px;font-size:17px}.game-dock .undo{min-width:55px}.game-dock p{font-size:12px}.game-content{padding-bottom:80px}.winner-panel{gap:12px;padding:17px}.winner-panel>span{font-size:32px}.winner-panel>span:last-child{display:none}.winner-panel h2{font-size:25px}.winner-panel p:last-child{font-size:14px}.all-foods{grid-template-columns:1fr}.match-banner{margin-bottom:16px;padding:9px 12px}.match-banner b{font-size:15px}.match-banner small{font-size:12px}.overview-tabs button{padding:10px 14px;font-size:14px}}@media (height<=730px) and (width<=650px){.topbar{padding-top:10px;padding-bottom:10px}#game-view .game-top h1{margin:4px 0;font-size:24px}.game-progress{margin:10px auto 14px}.game-content.in-match .food-art{height:74px}.game-content.in-match .food-art img{height:70px}.game-content.in-match .food-body{padding-top:10px}.game-content.in-match .basis{margin:7px 0 10px}.game-content.in-match .food-pack{font-size:12px}.game-content.in-match h2{font-size:25px}}@media (prefers-reduced-motion:reduce){.food-card{animation:none}.collection-card:hover{transform:none}}
