/* tin-steps.css — THE TIN STEPS as cards (the Sakura Series system) for /shop/build (byo.js + tin-chooser.js).
   Shop mode, on paper: black heading band (pink badge · what · the pick) over a hairline card; the lid is paper
   with a hairline; the controls are lowercase 800, one radius, no gradients. Scoped to .tinsec. */
.tinsec{ --font:'League Spartan',sans-serif; --dealer:#000; --line:#E7E1D5; --r:11px; margin-top:14px; scroll-margin-top:70px }
.tinsec[hidden]{ display:none !important }
.tinsec .steps{ display:flex; flex-direction:column; gap:12px }
.tinsec .step{ margin:0; border:1px solid var(--line); border-radius:14px; background:#fff; overflow:hidden; transition:border-color .2s }
.tinsec .step.act{ border-color:var(--dealer) }
.tinsec .step > .sh{ margin:0; display:flex; align-items:center; gap:9px; padding:10px 14px; background:#000 }
.tinsec .sh i{ flex:none; font-style:normal; width:22px; height:22px; border-radius:50%; background:var(--dealer); color:#000; font:900 12px/22px var(--font); text-align:center }
.tinsec .sh > b{ font:900 13px var(--font); letter-spacing:.14em; text-transform:uppercase; color:var(--dealer) }
.tinsec .sh > span, .tinsec .sh > b.pick{ margin-left:auto; font:800 12px var(--font); letter-spacing:.02em; text-transform:none; color:#9a9a9a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.tinsec .sh > b.pick{ color:#fff; font-size:14px }
/* ② the name */
.tinsec .namein{ display:flex; align-items:center; gap:10px; padding:0 14px; height:58px }
.tinsec .namein input{ flex:1; min-width:0; background:none; border:0; outline:0; color:#000; font:900 22px var(--font); text-align:center }
.tinsec .namein input{ height:34px; border-radius:var(--r); background:var(--dealer); padding:0 10px; caret-color:#000 }
.tinsec .namein input::placeholder{ color:rgba(0,0,0,.45) }
.tinsec .namein input[data-tone="m"]{ background:#8FBBEA }
.tinsec .namein .nn{ flex:none; border:1px solid #000; border-radius:99px; background:#fff; color:#000; font:800 10px var(--font); letter-spacing:.14em; text-transform:uppercase; padding:8px 11px; cursor:pointer }
.tinsec .namein .nn.on{ background:#000; color:#fff }
.tinsec .namein.off input{ opacity:.3 }
.tinsec .namein.need{ animation:needName .5s ease 2 } @keyframes needName{ 0%,100%{ transform:none } 50%{ transform:translateX(5px) } }
.tinsec .fontstrip{ padding:0 0 12px }
.tinsec .fsrail button{ background:#fff !important; color:#000 !important; border:1px solid var(--line) !important }
.tinsec .fsrail button i{ color:#8a8a8a !important }
.tinsec .fsrail button.on{ background:#000 !important; color:#fff !important; border-color:#000 !important }
/* ③ the lid */
.tinsec .scn{ display:flex; flex-direction:column; gap:10px; padding:12px }
.tinsec .scn[hidden]{ display:none !important }
.tinsec .scn .tin{ position:relative; width:100%; background:#fff; aspect-ratio:80/34; border-radius:10px; overflow:hidden; container-type:inline-size; cursor:grab; outline:1px solid #000 }
.tinsec .scn .tin > img{ width:100%; height:100%; object-fit:contain; display:block }
.tinsec .scn .lidname{ position:absolute; white-space:nowrap; color:#111; line-height:1; text-shadow:0 0 2px #fff, 0 0 4px #fff, 0 0 7px #fff, 0 0 10px #fff }
.tinsec .scn .tin:not(.laid) .lidname{ left:50%; top:45%; transform:translate(-50%,-50%); font:900 9cqw/1 var(--font) }
.tinsec .scn .tin.laid .lidname{ transform:translate(-50%,-50%) }
.tinsec .scn .lidby{ position:absolute; left:50%; bottom:6%; transform:translateX(-50%); line-height:1; display:flex }
.tinsec .scn .tin.laid .lidby{ transform:none; bottom:auto }
.tinsec .scn .lidby img{ height:7px; width:auto; display:block; filter:drop-shadow(0 0 1px #fff) drop-shadow(0 0 2.5px #fff) }
.tinsec .scn .tin.noname .lidby img{ background:#fff; box-shadow:0 0 0 3px #fff, 0 0 8px 6px #fff; border-radius:2px }
.tinsec .scn .lidch{ position:absolute; left:0; right:0; display:flex; justify-content:center; align-items:center; pointer-events:none }
.tinsec .scn .lidch img{ height:100%; width:auto; display:block }
.tinsec .scn .lidch img.ph, .tinsec .scn .lidart img.ph{ filter:grayscale(1) brightness(.42) contrast(1.4) }
.tinsec .scn .sc{ display:flex; flex-direction:column; gap:8px }
.tinsec .scn small{ display:none }
.tinsec .scn .looks{ display:flex; gap:6px }
.tinsec .scn .looks button{ flex:1; min-width:0; height:38px; border:1px solid var(--line); border-radius:var(--r); background:#fff; color:#000; font:800 13px var(--font); text-transform:lowercase; cursor:pointer }
.tinsec .scn .looks button.on{ background:#000; color:#fff; border-color:#000 }
.tinsec .scn .scap{ display:flex; align-items:center; justify-content:space-between; gap:6px }
.tinsec .scn .scap[hidden]{ display:none !important }
.tinsec .scn .scap b{ flex:1; min-width:0; text-align:center; font:900 15px var(--font); text-transform:lowercase; color:#000; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.tinsec .scn .scap button{ flex:none; width:30px; height:30px; border-radius:var(--r); border:1px solid var(--line); background:#fff; color:#000; font:900 16px var(--font); cursor:pointer }
.tinsec .scn .scap.chips{ justify-content:center; overflow-x:auto; scrollbar-width:none; padding:2px 0 }
.tinsec .scn .scap.chips > button:first-child{ margin-left:auto } .tinsec .scn .scap.chips > button:last-of-type{ margin-right:auto } .tinsec .scn .scap.chips::-webkit-scrollbar{ display:none }
.tinsec .scn .scap.chips button{ width:auto; padding:0 11px; font:800 12px var(--font); text-transform:lowercase; white-space:nowrap }
.tinsec .scn .scap.chips button.on{ background:#000; color:#fff; border-color:#000 }
/* the way out */
.tinsec .s2go{ display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:10px; margin-top:14px }
.tinsec .s2go .go{ flex:1 1 200px; max-width:300px; height:48px; border-radius:var(--r); font:800 14px var(--font); text-transform:lowercase; cursor:pointer; border:1px solid #000; background:#000; color:#fff }
.tinsec .s2go .go.alt{ background:#fff; color:#000 }
.tinsec .s2go .go[hidden]{ display:none !important }
.tinsec .s2go .go.more{ flex-basis:100%; max-width:none; height:40px; font-size:13px; background:#fff !important; color:#000 !important; border:1px solid #000 !important }

/* the lid screen (Build Your Own): locked in place of the picker, a way back at its top */
.tinsec .tinback{ display:flex; align-items:center; justify-content:center; width:100%; height:44px; padding:0 14px; margin:0 0 12px; border:0; border-radius:var(--r); background:var(--dealer); color:#000; font:800 14px var(--font); text-transform:lowercase; cursor:pointer }   /* solid pink: the way back to the trio, unmistakable */
.tinsec .tinback:hover{ filter:brightness(1.05) }
body.byo-tin .byox{ display:none !important }
