/* From a long shelf to one anime tonight (decide.js): shelf tools, the "Help me choose"
   and "Tidy your shelf" dialog, share buttons and the share sheet. */

/* ---------- Shelf tools inside "From my shelf" ---------- */
.shelf-tools { margin: 0 0 24px; padding-bottom: 24px; border-bottom: 1px solid #bbb4a2; }
.shelf-tools > .section-label { gap: 14px; }
.shelf-tools > .section-label span { white-space: nowrap; }
.shelf-tools > .section-label b { text-align: right; }
.shelf-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; border-top: 1px solid #aaa697; border-bottom: 1px solid #aaa697; }
.shelf-stats article { min-width: 0; padding: 14px 10px 12px 0; }
.shelf-stats article + article { padding-left: 14px; border-left: 1px solid #aaa697; }
.shelf-stats b { display: block; font: 400 38px/1 Georgia, serif; letter-spacing: -.03em; }
.shelf-stats span { display: block; margin-top: 7px; color: #6a665d; font: 800 11px/1.35 Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.shelf-quip { margin: 12px 0 0; color: #57534c; font: italic 15px/1.55 Georgia, serif; }
.shelf-decide { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 10px; margin-top: 18px; }
.shelf-choose { display: flex; align-items: center; gap: 14px; min-height: 70px; padding: 10px 18px 10px 11px; text-align: left; cursor: pointer; }
.shelf-choose-mark { flex: none; display: grid; place-items: center; width: 48px; height: 48px; color: var(--paper); background: var(--red); font: 400 26px/1 "Yu Mincho", "MS Mincho", serif; transition: background-color .2s; }
.shelf-choose:hover .shelf-choose-mark { background: var(--ink); }
.shelf-choose b, .shelf-tidy b { display: block; font: 400 22px/1.1 Georgia, serif; letter-spacing: -.01em; text-transform: none; }
.shelf-choose small, .shelf-tidy small { display: block; margin-top: 5px; font: 13px/1.35 Arial, sans-serif; letter-spacing: 0; text-transform: none; }
.shelf-choose small { color: #d8d3c4; }
.shelf-tidy { min-height: 70px; padding: 10px 16px; border: 1px solid #8a8374; color: var(--ink); background: rgba(255, 255, 255, .2); text-align: left; cursor: pointer; }
.shelf-tidy small { color: #625e55; }
.shelf-tidy:hover { border-color: var(--red); }
.shelf-choose:disabled, .shelf-tidy:disabled { opacity: .5; cursor: not-allowed; }
.shelf-choose:disabled:hover { background: var(--ink); }
.shelf-choose:focus-visible, .shelf-tidy:focus-visible, .shelf-lens button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.shelf-lens { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 18px; }
.shelf-lens-label { margin-right: 6px; color: var(--red); font: 800 11px/1 Arial, sans-serif; letter-spacing: .18em; }
.shelf-lens button { min-height: 44px; padding: 0 14px; border: 1px solid #aaa697; border-radius: 22px; color: var(--ink); background: rgba(255, 255, 255, .22); font: italic 15px/1 Georgia, serif; cursor: pointer; }
.shelf-lens button:hover { border-color: var(--red); }
.shelf-lens button[aria-pressed="true"] { border-color: var(--ink); color: var(--paper); background: var(--ink); }
.shelf-lens-count { margin-left: 7px; color: var(--red); font: 800 12px/1 Arial, sans-serif; }
.shelf-lens-count:empty { display: none; }

/* ---------- Share buttons on cards ---------- */
.card-share { position: absolute; z-index: 3; top: 48px; right: 14px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(18, 18, 18, .22); border-radius: 50%; color: var(--ink); background: rgba(242, 238, 223, .94); cursor: pointer; touch-action: manipulation; }
.card-share svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.card-share:hover { border-color: var(--red); color: var(--paper); background: var(--red); }
.card-share:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ---------- The decide dialog ---------- */
html.decide-open { overflow: hidden; }
.decide-dialog { width: min(1000px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; color: var(--paper); background: transparent; overflow: visible; }
.decide-dialog::backdrop { background: rgba(10, 10, 11, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.decide-shell { position: relative; max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; padding: 20px clamp(18px, 4vw, 42px) 32px; border: 1px solid #3b3935; background: var(--night); box-shadow: 14px 14px 0 #050505; }
.decide-head { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.decide-kicker { margin: 0; color: var(--red); font: 800 12px/1.4 Arial, sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.decide-close { flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid #3b3935; color: var(--paper); background: transparent; font: 400 28px/1 Georgia, serif; cursor: pointer; }
.decide-close:hover, .decide-close:focus-visible { border-color: var(--red); color: var(--red); outline: none; }
.decide-body { position: relative; z-index: 1; }
.decide-step h2 { margin: 16px 0 0; font: 400 clamp(32px, 5vw, 52px)/1 Georgia, serif; letter-spacing: -.04em; overflow-wrap: anywhere; }
.decide-sub { max-width: 62ch; margin: 12px 0 0; color: #bdb9ae; font: italic 16px/1.55 Georgia, serif; }
.decide-text { min-height: 44px; padding: 0 4px; border: 0; color: #d4cfc1; background: none; font: 15px/1.4 Arial, sans-serif; text-decoration: underline; text-decoration-color: rgba(239, 75, 63, .6); text-underline-offset: 4px; cursor: pointer; }
.decide-text:hover { color: var(--red); }
.decide-text:disabled { opacity: .4; text-decoration: none; cursor: default; }
.decide-text:focus-visible, .decide-row button:focus-visible, .duel-neither:focus-visible, .tidy-last button:focus-visible, .reveal-actions > :not(.decision):focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.decide-dialog kbd { border-color: #5d5b56; color: #bdb9ae; font-size: 12px; }
.decide-keys { margin: 16px 0 0; color: #8a877f; text-align: center; font: italic 13px/1.6 Georgia, serif; }
.decide-petals { position: absolute; inset: 0; z-index: 4; overflow: hidden; pointer-events: none; }
.decide-petals i { position: absolute; left: 0; top: 0; border-radius: 70% 0 70% 0; }
.decide-loading { display: grid; place-items: center; align-content: center; gap: 18px; min-height: 340px; text-align: center; }
.decide-loading span { display: grid; place-items: center; width: 76px; height: 76px; border: 1px solid var(--red); border-radius: 50%; color: var(--red); font: 400 33px/1 "Yu Mincho", "MS Mincho", serif; animation: breathe 1.3s ease-in-out infinite alternate; }
.decide-loading p { margin: 0; color: #bdb9ae; font: italic 16px/1.5 Georgia, serif; }
.decide-mark { display: grid; place-items: center; width: 72px; height: 72px; margin-top: 20px; color: var(--paper); background: var(--red); font: 400 38px/1 "Yu Mincho", "MS Mincho", serif; }
.decide-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 26px; }
.decide-row button:not(.decide-text) { min-height: 52px; padding: 0 20px; border: 1px solid #6a675f; color: var(--paper); background: transparent; font: 800 12px/1.2 Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.decide-row button:not(.decide-text):hover { border-color: var(--red); color: var(--red); }
.decide-row .primary { border-color: var(--red); background: var(--red); font-size: 12px !important; }
.decide-row button.primary:not(.decide-text):hover { border-color: #d93d32; color: var(--paper); background: #d93d32; }
.decide-aside { margin: 22px 0 0; color: #bdb9ae; font: 15px/1.5 Arial, sans-serif; }
.decide-aside b { color: var(--paper); font-weight: 400; }

/* Step 1: how much time */
.time-options { display: grid; gap: 14px; margin-top: 26px; }
.time-option { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 18px; min-height: 92px; padding: 12px 20px 12px 12px; border: 0; color: var(--ink); background: var(--paper); box-shadow: 7px 7px 0 #050505; text-align: left; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.time-option:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--red); }
.time-option:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.time-option:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: 7px 7px 0 #050505; }
.time-mark { display: grid; place-items: center; width: 64px; height: 64px; color: var(--paper); background: var(--red); font: 400 32px/1 "Yu Mincho", "MS Mincho", serif; }
.time-option:disabled .time-mark { background: #8a8374; }
.time-copy { min-width: 0; }
.time-copy b { display: block; font: 400 26px/1.1 Georgia, serif; letter-spacing: -.02em; }
.time-copy small { display: block; margin-top: 6px; color: #625e55; font: 15px/1.4 Arial, sans-serif; }
.time-option kbd { border-color: #aaa697; color: #6a665d; }
.time-any { margin-top: 16px; }

/* Step 2: this or that */
.duel-progress { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 12px; }
.duel-round { margin: 0; color: var(--paper); font: 800 12px/1 Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.duel-round span { margin-left: 8px; color: var(--red); font: 400 19px/1 "Yu Mincho", "MS Mincho", serif; letter-spacing: .05em; }
.duel-pips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.duel-pips li { width: 22px; height: 6px; background: #3b3935; }
.duel-pips li.done { background: var(--paper); }
.duel-pips li.now { background: var(--red); }
.duel-step h2 { font-size: clamp(30px, 4.2vw, 44px); }
.duel-pair { display: grid; grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr); align-items: stretch; gap: 8px; margin-top: 22px; }
.duel-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 0; border: 0; color: var(--ink); background: var(--paper); box-shadow: 9px 9px 0 #050505; text-align: left; cursor: pointer; overflow: hidden; transition: box-shadow .15s; }
.duel-card:hover { box-shadow: 9px 9px 0 var(--red); }
.duel-card:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.duel-cover { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; background: #cbc3ae; }
.duel-cover img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 24%; }
.duel-cover i, .reveal-sheet > i, .tidy-cover i { color: rgba(18, 18, 18, .35); font: normal 400 48px/1 "Yu Mincho", "MS Mincho", serif; }
.duel-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 18px 20px; }
.duel-meta { color: var(--red); font: 800 11px/1.35 Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.duel-title { font: 400 clamp(22px, 2.4vw, 30px)/1.05 Georgia, serif; letter-spacing: -.03em; overflow-wrap: anywhere; }
.duel-plan { padding: 5px 8px; color: var(--paper); background: var(--ink); font: 14px/1.3 Arial, sans-serif; }
.duel-plan.stretch { padding: 4px 7px; border: 1px dashed #8a8374; color: var(--ink); background: transparent; }
.duel-reasons { color: #57534c; font: italic 15px/1.45 Georgia, serif; }
.duel-saved { margin-top: auto; color: #6a665d; font: 13px/1.4 Arial, sans-serif; }
.duel-key { position: absolute; top: 10px; right: 10px; z-index: 1; min-width: 30px; padding: 4px 6px; border: 0; color: var(--paper); background: rgba(18, 18, 18, .78); text-align: center; font: 14px/1 Arial, sans-serif; }
.duel-vs { display: grid; place-items: center; }
.duel-vs span { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: var(--paper); background: var(--red); font: 400 27px/1 "Yu Mincho", "MS Mincho", serif; box-shadow: 0 0 0 6px var(--night); }
.duel-stamp { position: absolute; top: 14px; left: 14px; z-index: 2; display: grid; place-items: center; width: 76px; height: 76px; border: 3px solid var(--red); border-radius: 8px; color: var(--red); background: rgba(242, 238, 223, .9); box-shadow: 3px 3px 0 rgba(18, 18, 18, .2); font: 400 46px/1 "Yu Mincho", "MS Mincho", serif; pointer-events: none; }
.duel-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin-top: 28px; }
.duel-neither { min-height: 50px; padding: 0 24px; border: 1px solid #6a675f; color: var(--paper); background: transparent; font: 800 12px/1 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.duel-neither:hover { border-color: var(--red); color: var(--red); }

/* Step 3: the reveal */
.reveal-step { display: grid; grid-template-columns: minmax(220px, 360px) minmax(0, 1fr); align-items: center; gap: clamp(22px, 5vw, 60px); padding-top: 10px; }
.reveal-stage { position: relative; display: grid; place-items: center; min-height: 400px; }
.reveal-sun { position: absolute; width: 92%; aspect-ratio: 1; border-radius: 50%; background: var(--red); }
.reveal-sheet { position: relative; display: grid; place-items: center; width: min(250px, 72%); min-height: 200px; margin: 0; padding: 10px; background: var(--paper); box-shadow: 11px 11px 0 #050505; transform: rotate(-2deg); }
.reveal-sheet img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.reveal-stamp { position: absolute; right: -26px; bottom: 26px; display: grid; justify-items: center; gap: 3px; padding: 9px 13px 7px; border: 3px solid var(--red); border-radius: 8px; color: var(--red); background: rgba(242, 238, 223, .92); box-shadow: 3px 3px 0 rgba(18, 18, 18, .22); transform: rotate(-12deg); }
.reveal-stamp b { font: 400 32px/1 "Yu Mincho", "MS Mincho", serif; letter-spacing: .04em; }
.reveal-stamp small { font: 800 9px/1 Arial, sans-serif; letter-spacing: .22em; }
.reveal-copy { min-width: 0; }
.reveal-copy h2 { margin-top: 10px; font-size: clamp(36px, 5vw, 60px); line-height: .98; letter-spacing: -.045em; }
.reveal-plan { display: inline-block; margin: 16px 0 0; padding: 6px 10px; color: var(--ink); background: var(--paper); font: 15px/1.35 Arial, sans-serif; }
.reveal-why { margin: 14px 0 0; color: #bdb9ae; font: italic 16px/1.55 Georgia, serif; }
.reveal-why span { color: #8e8a81; }
.reveal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.reveal-actions > * { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 20px; border: 1px solid rgba(242, 238, 223, .55); color: var(--paper); background: transparent; font: 800 12px/1.2 Arial, sans-serif; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; cursor: pointer; }
/* The pick goes on tonight's list with the deck's own Tonight (decision.css), as tall as its neighbours. */
.reveal-actions > .decision { min-height: 52px; padding: 0 20px; }
.reveal-actions a:hover, .reveal-share:hover { border-color: var(--red); color: var(--red); }
.reveal-copy > .decide-text { margin-top: 14px; }
.reveal-note { min-height: 1.5em; margin: 10px 0 0; color: #d4cfc1; font: 15px/1.5 Arial, sans-serif; }

/* Tidy your shelf */
.tidy-progress { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.tidy-progress p { flex: none; margin: 0; color: #bdb9ae; font: italic 16px/1 Georgia, serif; }
.tidy-progress b { color: var(--paper); font: normal 400 28px/1 Georgia, serif; }
.tidy-bar { flex: 1; height: 4px; overflow: hidden; background: #3b3935; }
.tidy-bar i { display: block; height: 100%; background: var(--red); transform: scaleX(var(--progress, 0)); transform-origin: 0 50%; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.tidy-card { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; margin-top: 22px; padding: 16px; color: var(--ink); background: var(--paper); box-shadow: 9px 9px 0 #050505; touch-action: pan-y pinch-zoom; user-select: none; cursor: grab; }
.tidy-card.dragging { cursor: grabbing; }
.tidy-cover { display: grid; place-items: center; min-height: 214px; background: #cbc3ae; }
.tidy-cover img { display: block; width: 150px; height: 214px; object-fit: cover; pointer-events: none; }
.tidy-copy { min-width: 0; padding: 6px 70px 6px 0; }
.tidy-age { margin: 0; color: var(--red); font: 800 12px/1.4 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.tidy-copy h3 { margin: 10px 0 0; font: 400 clamp(26px, 3.4vw, 38px)/1.02 Georgia, serif; letter-spacing: -.035em; overflow-wrap: anywhere; }
.tidy-meta { margin: 10px 0 0; color: #57534c; font: 15px/1.5 Arial, sans-serif; }
.tidy-passed { display: inline-block; margin: 12px 0 0; padding: 4px 8px; border: 1px dashed var(--red); color: #a12519; font: italic 14px/1.4 Georgia, serif; }
.tidy-signals { margin: 12px 0 0; color: #6a665d; font: italic 14px/1.5 Georgia, serif; }
.tidy-stamp { position: absolute; display: grid; place-items: center; width: 70px; height: 70px; border: 3px solid currentColor; border-radius: 8px; background: rgba(242, 238, 223, .9); font: 400 40px/1 "Yu Mincho", "MS Mincho", serif; opacity: 0; pointer-events: none; }
/* The deck's stamps: 保 kept (saved), 否 passed, 了 finished. */
.tidy-stamp-keep { top: 18px; right: 18px; color: var(--decision-stamp-save, #7a6a48); transform: rotate(-10deg); }
.tidy-stamp-pass { top: 18px; left: 18px; color: var(--decision-stamp-pass, var(--ink)); transform: rotate(10deg); }
.tidy-stamp-watched { right: 18px; bottom: 18px; color: var(--decision-stamp-finished, var(--ink)); transform: rotate(-6deg); }
/* Pass · Keep | Finished: the shared decision bar (decision.css). */
.tidy-actions { margin-top: 22px; }
.tidy-hint kbd { margin: 0 1px; }
.tidy-last { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 64px; margin-top: 20px; padding: 10px 0; border-top: 1px solid #3b3935; color: #d4cfc1; font: 15px/1.45 Arial, sans-serif; }
.tidy-last p { flex: 1 1 220px; margin: 0; overflow-wrap: anywhere; }
.tidy-last b { color: var(--paper); }
.tidy-last .tidy-hint { color: #9a968c; font: italic 14px/1.5 Georgia, serif; }
.tidy-last .tidy-error { color: #ff8a80; }
.tidy-last button { min-height: 44px; padding: 0 12px; border: 1px solid #6a675f; color: var(--paper); background: transparent; font: 14px/1 Arial, sans-serif; cursor: pointer; }
.tidy-last button:hover { border-color: var(--red); color: var(--red); }
.tidy-react { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tidy-reacted { padding: 6px 10px; color: var(--ink); background: var(--paper); font: 14px/1.2 Arial, sans-serif; }
.tidy-stop { margin-top: 6px; }
.tidy-tally { display: flex; flex-wrap: wrap; gap: 30px; margin: 22px 0 0; }
.tidy-tally span { color: #bdb9ae; font: 800 12px/1.3 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.tidy-tally b { display: block; margin-bottom: 4px; color: var(--paper); font: 400 46px/1 Georgia, serif; letter-spacing: -.03em; }

/* ---------- Share sheet ---------- */
.share-sheet { width: min(460px, calc(100% - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 22px; border: 1px solid var(--ink); color: var(--ink); background: var(--paper); box-shadow: 12px 12px 0 #050505; overflow: auto; }
.share-sheet::backdrop { background: rgba(10, 10, 11, .78); }
.share-sheet-head { display: grid; grid-template-columns: auto minmax(0, 1fr) 44px; gap: 14px; align-items: start; }
.share-sheet-cover img { display: block; width: 56px; height: 80px; object-fit: cover; box-shadow: 4px 4px 0 rgba(18, 18, 18, .2); }
.share-sheet h2 { margin: 6px 0 0; font: 400 25px/1.1 Georgia, serif; letter-spacing: -.02em; overflow-wrap: anywhere; }
.share-sheet .decide-close { border-color: #aaa697; color: var(--ink); }
.share-sheet .decide-close:hover, .share-sheet .decide-close:focus-visible { border-color: var(--red); color: var(--red); }
.share-sheet-label { display: block; margin: 20px 0 6px; color: #625e55; font: 800 11px/1.3 Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.share-sheet input { box-sizing: border-box; width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid #989181; border-radius: 0; color: var(--ink); background: #fffdf5; font: 15px/1.3 Arial, sans-serif; }
.share-sheet input:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.share-sheet-actions { display: grid; gap: 8px; margin-top: 14px; }
.share-sheet-actions button { min-height: 50px; padding: 0 16px; border: 1px solid #8a8374; color: var(--ink); background: transparent; font: 800 12px/1.2 Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.share-sheet-actions button:hover { border-color: var(--red); color: var(--red); }
.share-sheet-actions .primary { border-color: var(--ink); color: var(--paper); background: var(--ink); font-size: 12px !important; }
.share-sheet-actions .primary:hover { border-color: var(--red); color: var(--paper); background: var(--red); }
.share-sheet-actions button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.share-sheet-actions span { color: var(--red); font: 400 16px/1 "Yu Mincho", "MS Mincho", serif; }
.share-sheet-status { min-height: 1.5em; margin: 12px 0 0; color: var(--blue); font: 15px/1.5 Arial, sans-serif; }

/* Keyboard hints only where there is a keyboard. */
@media (pointer: coarse) {
    .decide-keys, .duel-key, .decide-dialog kbd, .decide-keys-inline { display: none; }
}

@media (max-width: 760px) {
    .shelf-decide { grid-template-columns: 1fr; }
    .shelf-stats b { font-size: 30px; }
    .shelf-stats span { font-size: 10px; letter-spacing: .05em; }
    .card-share { top: 46px; right: 12px; }
    .decide-dialog { width: 100%; max-height: none; height: 100%; margin: 0; }
    .decide-shell { box-sizing: border-box; min-height: 100%; max-height: 100dvh; padding: max(12px, env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom)); border: 0; box-shadow: none; }
    .time-option { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; min-height: 84px; padding: 10px 14px 10px 10px; }
    .time-mark { width: 52px; height: 52px; font-size: 26px; }
    .time-copy b { font-size: 22px; }
    .time-copy small { font-size: 14px; }
    .time-option kbd { display: none; }
    .duel-pair { grid-template-columns: 1fr; gap: 0; }
    .duel-vs { position: relative; z-index: 2; height: 30px; place-items: center start; padding-left: 29px; }
    .duel-vs span { width: 46px; height: 46px; font-size: 23px; }
    .duel-card { flex-direction: row; min-height: 152px; }
    .duel-cover { flex: none; width: 104px; aspect-ratio: auto; }
    .duel-copy { gap: 6px; padding: 12px 14px 14px; }
    .duel-title { font-size: 21px; }
    .duel-plan { font-size: 13px; }
    .duel-reasons { font-size: 14px; }
    .duel-actions { margin-top: 20px; }
    .duel-stamp { width: 60px; height: 60px; font-size: 36px; }
    .reveal-step { grid-template-columns: 1fr; gap: 18px; }
    .reveal-stage { min-height: 270px; }
    .reveal-sun { width: min(270px, 80%); }
    .reveal-sheet { width: 160px; min-height: 160px; padding: 7px; }
    .reveal-stamp { right: -30px; bottom: 16px; padding: 7px 10px 5px; }
    .reveal-stamp b { font-size: 26px; }
    .reveal-actions > * { flex: 1 1 140px; }
    .tidy-card { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 12px; }
    .tidy-cover { min-height: 132px; }
    .tidy-cover img { width: 92px; height: 132px; }
    .tidy-copy { padding: 2px 0 0; }
    .tidy-copy h3 { font-size: 24px; }
    .tidy-meta { font-size: 14px; }
    .tidy-stamp { width: 54px; height: 54px; font-size: 30px; }
    .tidy-stamp-keep, .tidy-stamp-pass { top: 10px; }
    .tidy-stamp-keep { right: 10px; }
    .tidy-stamp-pass { left: 10px; }
    .tidy-tally { gap: 20px; }
    .tidy-tally b { font-size: 38px; }
}
