/* steachs.com 小工具共用樣式（2026-10-19）— 與主站同一套「教學筆記」配色 */
:root {
  --paper: #f7f6f2; --surface: #fff; --ink: #121316; --ink-2: #2c2f36; --muted: #6b707a; --faint: #9a9ea6;
  --line: #e6e4dd; --line-2: #d6d3ca; --hl: #ffd43b; --hl-soft: #fff3bf; --link: #1d5bd6;
  --radius: 14px; --shadow: 0 1px 2px rgba(18,19,22,.04), 0 8px 24px -12px rgba(18,19,22,.18);
  --font: "Inter", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --wrap: 1080px;
  /* 元素色：星座、塔羅共用 */
  --fire: #e8590c; --earth: #5c940d; --air: #1c7ed6; --water: #6741d9;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--hl); outline-offset: 2px; border-radius: 6px; }
.t-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.hl { background: linear-gradient(transparent 58%, var(--hl) 58%, var(--hl) 92%, transparent 92%); padding: 0 .08em; }

/* ── 頁首（單一列，AdSense 塞進來時獨占一行，不固定） ── */
.t-header { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; min-height: 64px; background: #fff; border-bottom: 1px solid var(--line);
  padding: 0 max(24px, calc((100% - var(--wrap)) / 2 + 24px)); }
.t-header > .google-auto-placed { flex: 0 0 100%; order: 99; margin-bottom: 12px; }
.t-brand { display: flex; align-items: center; min-height: 64px; }
.t-brand img { height: 38px; width: auto; }
.t-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.t-nav::-webkit-scrollbar { display: none; }
.t-nav a { flex: none; height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.t-nav a:hover { background: var(--paper); }
.t-nav a.is-current { background: var(--ink); color: #fff; }
.t-back { font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.t-back:hover { color: var(--ink); }

.t-main { min-height: 60vh; }
.t-hero { padding: 44px 0 28px; }
.t-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .05em; color: var(--muted); text-transform: uppercase; }
.t-eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--ink); }
.t-hero h1 { margin: 12px 0 12px; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.22; font-weight: 900; letter-spacing: -.02em; }
.t-hero p { margin: 0; max-width: 40em; color: var(--ink-2); font-size: 16.5px; }
.t-crumbs { font-size: 13px; color: var(--muted); padding-top: 20px; }
.t-crumbs a:hover { color: var(--ink); text-decoration: underline; }
.t-crumbs i { font-style: normal; color: var(--faint); margin: 0 6px; }

.t-section { padding: 20px 0 32px; }
.t-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.t-section-head h2 { margin: 0; font-size: 24px; line-height: 1.35; font-weight: 900; }
.t-section-head h2 small { display: block; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }

/* ── 共用元件 ── */
.t-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.t-card + .t-card { margin-top: 16px; }
.t-card h3 { margin: 0 0 10px; font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.t-card h3::before { content: ""; width: 10px; height: 10px; background: var(--hl); border: 1.5px solid var(--ink); border-radius: 3px; transform: rotate(45deg); flex: none; }
.t-card p { margin: 0; color: var(--ink-2); }
.t-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.t-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 12px; border: 1.5px solid var(--ink); background: var(--ink); color: #fff; font-weight: 700; font-size: 15.5px; cursor: pointer; transition: transform .12s, box-shadow .15s, background .15s; }
.btn:hover { box-shadow: 3px 3px 0 var(--hl); transform: translate(-1px, -1px); }
.btn:active { transform: none; box-shadow: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.btn.ghost { background: #fff; color: var(--ink); }
.btn.small { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 700; }
.select, .input { height: 46px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; font-size: 16px; }
.select:focus, .input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 212, 59, .5); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.chip.hl { background: var(--hl); border-color: var(--hl); color: var(--ink); }
.list-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.list-check li { position: relative; padding-left: 22px; color: var(--ink-2); }
.list-check li::before { content: "＋"; position: absolute; left: 0; top: 0; font-weight: 800; color: var(--earth); }
.list-check.minus li::before { content: "－"; color: var(--fire); }
.meter { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--ink); border-radius: 4px; transition: width .6s ease; }
.note { font-size: 13px; color: var(--muted); }
.t-share { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: all .25s; z-index: 50; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%); }
[hidden] { display: none !important; }

/* ── 總覽頁 ── */
.hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hub-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.hub-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.hub-card .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 28px; background: var(--hl-soft); border: 1.5px solid var(--ink); }
.hub-card h2 { margin: 6px 0 0; font-size: 20px; font-weight: 900; }
.hub-card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.hub-card .go { margin-top: auto; font-weight: 700; font-size: 14px; }

/* ── 頁尾 ── */
.t-footer { margin-top: 56px; background: var(--ink); color: #b9bcc3; font-size: 14px; }
.t-footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 36px; padding-bottom: 24px; }
.t-footer b { color: #fff; display: block; margin-bottom: 10px; }
.t-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.t-footer a:hover { color: var(--hl); }
.t-note { max-width: 26em; margin: 0; color: #8d9098; }
.t-copy { padding-top: 16px; padding-bottom: 26px; border-top: 1px solid #2a2c32; color: #7d818a; font-size: 13px; }

/* ==================== 星座 ==================== */
.zd-finder { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.zd-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.zd-tile { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 6px 12px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .15s, transform .12s; text-align: center; }
.zd-tile:hover { border-color: var(--ink); transform: translateY(-2px); }
.zd-tile.is-current { border-color: var(--ink); background: var(--hl-soft); box-shadow: 3px 3px 0 var(--ink); }
.zd-tile .sym { font-size: 30px; line-height: 1.2; }
.zd-tile b { font-size: 15px; }
.zd-tile small { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.zd-result { margin-top: 8px; }
.zd-head { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 26px; border-radius: 18px; background: var(--ink); color: #fff; }
.zd-badge { width: 92px; height: 92px; border-radius: 22px; display: grid; place-items: center; font-size: 52px; background: var(--hl); color: var(--ink); border: 2px solid #fff; }
.zd-head h2 { margin: 0; font-size: 32px; font-weight: 900; line-height: 1.2; }
.zd-head h2 small { font-family: var(--mono); font-size: 15px; font-weight: 500; color: #c9ccd2; margin-left: 8px; }
.zd-head .zd-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.zd-head .chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #e8e9ec; }
.zd-head .chip.hl { background: var(--hl); color: var(--ink); }
.zd-head p { margin: 12px 0 0; color: #d6d8dc; }
.zd-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; margin-top: 16px; }
.zd-lucky { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.zd-lucky div { padding: 12px 6px; background: var(--paper); border-radius: 12px; }
.zd-lucky small { display: block; font-size: 12px; color: var(--muted); }
.zd-lucky b { font-size: 15px; }
.zd-daily .row { display: grid; grid-template-columns: 56px 1fr 28px; gap: 10px; align-items: center; margin: 8px 0; font-size: 14px; font-weight: 600; }
.zd-daily .row b { font-family: var(--mono); text-align: right; }
.zd-daily .tip { margin-top: 12px; padding: 12px 14px; background: var(--hl-soft); border-radius: 12px; font-size: 15px; }
.zd-match { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 12px; align-items: end; }
.zd-match .plus { font-size: 22px; font-weight: 900; padding-bottom: 8px; }
.zd-score { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; margin-top: 16px; }
.zd-ring { --p: 0; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--ink) calc(var(--p) * 1%), var(--line) 0); }
.zd-ring span { width: 92px; height: 92px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-family: var(--mono); font-size: 28px; font-weight: 700; }
.el-火 { color: var(--fire); } .el-土 { color: var(--earth); } .el-風 { color: var(--air); } .el-水 { color: var(--water); }

/* ==================== 16 型人格 ==================== */
.mb-intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.mb-dims { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mb-dims div { padding: 12px 14px; background: var(--paper); border-radius: 12px; font-size: 14px; }
.mb-dims b { font-family: var(--mono); }
.mb-quiz { max-width: 760px; margin: 0 auto; }
.mb-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.mb-progress .meter { flex: 1; }
.mb-q { padding: 28px; background: #fff; border: 1.5px solid var(--ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--ink); }
.mb-q .qn { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.mb-q h2 { margin: 6px 0 18px; font-size: 20px; font-weight: 800; }
.mb-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.mb-pair div { padding: 14px 16px; border-radius: 14px; background: var(--paper); font-size: 15.5px; line-height: 1.6; font-weight: 600; }
.mb-pair .a { border-left: 5px solid var(--ink); }
.mb-pair .b { border-right: 5px solid var(--ink); text-align: right; }
.mb-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.mb-scale button { height: 54px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fff; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: background .12s, border-color .12s; }
.mb-scale button i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; }
.mb-scale button:nth-child(1) i, .mb-scale button:nth-child(5) i { width: 20px; height: 20px; }
.mb-scale button:nth-child(3) i { width: 10px; height: 10px; }
.mb-scale button:hover { border-color: var(--ink); }
.mb-scale button.is-picked { background: var(--hl); border-color: var(--ink); color: var(--ink); }
.mb-scale button.is-picked i { background: var(--ink); border-color: var(--ink); }
.mb-nav { display: flex; justify-content: space-between; margin-top: 16px; }
.mb-type { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; padding: 28px; border-radius: 18px; background: var(--ink); color: #fff; }
.mb-code { font-family: var(--mono); font-size: 54px; font-weight: 700; letter-spacing: .04em; line-height: 1; padding: 18px 20px; border-radius: 16px; background: var(--hl); color: var(--ink); border: 2px solid #fff; }
.mb-type h2 { margin: 0; font-size: 30px; font-weight: 900; }
.mb-type .tag { margin: 6px 0 0; color: #d6d8dc; font-size: 16px; }
.mb-bars { display: grid; gap: 14px; }
.mb-bar { display: grid; grid-template-columns: 92px 1fr 92px; gap: 10px; align-items: center; font-size: 13.5px; font-weight: 700; }
.mb-bar span:last-child { text-align: right; }
.mb-bar .track { position: relative; height: 12px; border-radius: 6px; background: var(--line); overflow: hidden; }
.mb-bar .track i { position: absolute; top: 0; bottom: 0; background: var(--ink); border-radius: 6px; }
.mb-bar .win { color: var(--ink); } .mb-bar .lose { color: var(--faint); }
.mb-careers { display: flex; flex-wrap: wrap; gap: 6px; }
.mb-all { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mb-all a { padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.mb-all a:hover { border-color: var(--ink); }
.mb-all b { font-family: var(--mono); display: block; }
.mb-all span { font-size: 13px; color: var(--muted); }

/* ==================== 塔羅 ==================== */
.tr-setup { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.tr-spreads { display: grid; gap: 8px; }
.tr-spread { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; text-align: left; }
.tr-spread:hover { border-color: var(--ink); }
.tr-spread.is-current { border-color: var(--ink); background: var(--hl-soft); box-shadow: 3px 3px 0 var(--ink); }
.tr-spread .n { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: var(--hl); font-family: var(--mono); font-weight: 700; }
.tr-spread b { display: block; font-size: 15px; }
.tr-spread small { color: var(--muted); font-size: 13px; }
.tr-question { width: 100%; min-height: 92px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; resize: vertical; background: #fff; }
.tr-question:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 212, 59, .5); }
.tr-table { position: relative; padding: 26px 18px 30px; border-radius: 22px; background: radial-gradient(120% 90% at 50% 0%, #2a2350 0%, #16132b 60%, #0f0d1f 100%); color: #ece9ff; overflow: hidden; }
.tr-table h2 { margin: 0 0 4px; text-align: center; font-size: 20px; }
.tr-table .hint { text-align: center; color: #b9b3e6; font-size: 14px; margin: 0 0 18px; }
.tr-deck { position: relative; height: 210px; margin: 0 auto; max-width: 900px; }
.tr-deck .card-back { position: absolute; top: 20px; width: 96px; height: 160px; transform-origin: 50% 300%; cursor: pointer; transition: transform .35s ease, top .2s; }
.tr-deck .card-back:hover { top: 4px; }
.tr-deck .card-back.picked { opacity: .15; pointer-events: none; }
.tr-deck.shuffling .card-back { animation: tr-shuffle .9s ease-in-out; }
@keyframes tr-shuffle { 0%,100% { translate: 0 0; } 30% { translate: -40px -6px; } 60% { translate: 40px 4px; } }
.card-back { border-radius: 10px; background: #2b2160; border: 2px solid #d9c27a; box-shadow: 0 6px 14px rgba(0,0,0,.35); overflow: hidden; }
.card-back svg { width: 100%; height: 100%; display: block; }
.tr-slots { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.tr-slot { width: 128px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tr-slot .lbl { font-size: 13px; color: #cfc9f5; font-weight: 700; }
.tr-slot .ph { width: 116px; height: 194px; border-radius: 12px; border: 2px dashed rgba(217, 194, 122, .5); display: grid; place-items: center; color: rgba(217, 194, 122, .7); font-family: var(--mono); font-size: 22px; perspective: 900px; }
.flip { width: 116px; height: 194px; position: relative; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2,.7,.2,1); cursor: pointer; }
.flip.is-open { transform: rotateY(180deg); }
.flip > * { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 12px; overflow: hidden; }
.flip .face { transform: rotateY(180deg); background: #fbf7ea; border: 2px solid #d9c27a; }
.flip .face svg { width: 100%; height: 100%; display: block; }
.flip .face.rev svg { transform: rotate(180deg); }
.tr-read { margin-top: 18px; display: grid; gap: 14px; }
.tr-item { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.tr-item .mini { width: 120px; height: 200px; border-radius: 10px; overflow: hidden; border: 2px solid #d9c27a; background: #fbf7ea; }
.tr-item .mini.rev svg { transform: rotate(180deg); }
.tr-item .mini svg { width: 100%; height: 100%; display: block; }
.tr-item .pos { font-family: var(--mono); font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }
.tr-item h3 { margin: 2px 0 8px; font-size: 20px; font-weight: 900; }
.tr-item h3 small { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 6px; }
.tr-item .ori { display: inline-block; font-size: 12.5px; font-weight: 800; padding: 1px 8px; border-radius: 6px; margin-left: 6px; vertical-align: 3px; }
.tr-item .ori.up { background: var(--hl); } .tr-item .ori.rv { background: #2b2160; color: #ece9ff; }
.tr-item p { margin: 8px 0 0; color: var(--ink-2); }
.tr-item .adv { margin-top: 10px; padding: 10px 12px; background: var(--hl-soft); border-radius: 10px; font-size: 14.5px; }
.tr-summary { padding: 20px 22px; border-radius: 16px; background: var(--ink); color: #e8e9ec; }
.tr-summary h3 { margin: 0 0 8px; color: #fff; font-size: 18px; }
.tr-summary p { margin: 6px 0 0; color: #cfd2d8; }
.tr-browse { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.tr-browse button { padding: 0; border: 0; background: none; cursor: pointer; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.tr-browse .mini { aspect-ratio: 7 / 12; border-radius: 8px; overflow: hidden; border: 1.5px solid #d9c27a; background: #fbf7ea; margin-bottom: 4px; transition: transform .12s; }
.tr-browse button:hover .mini { transform: translateY(-3px); }
.tr-browse .mini svg { width: 100%; height: 100%; display: block; }
.tr-filter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tr-filter button { height: 34px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.tr-filter button.is-current { background: var(--ink); color: #fff; border-color: var(--ink); }
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(18,19,22,.55); }
.modal-box { width: min(640px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 18px; padding: 22px; display: grid; grid-template-columns: 140px 1fr; gap: 18px; position: relative; }
.modal-box .mini { width: 140px; height: 236px; border-radius: 12px; overflow: hidden; border: 2px solid #d9c27a; background: #fbf7ea; }
.modal-box .mini svg { width: 100%; height: 100%; display: block; }
.modal-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--paper); cursor: pointer; font-size: 18px; }

/* ── 窄螢幕 ── */
@media (max-width: 900px) {
  .zd-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .zd-body, .mb-intro, .tr-setup { grid-template-columns: 1fr; }
  .hub-grid, .t-grid-3 { grid-template-columns: 1fr; }
  .mb-all { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .t-wrap { padding: 0 16px; }
  .t-header { gap: 8px; padding: 0 16px; }
  .t-brand { min-height: 56px; }
  .t-brand img { height: 30px; }
  .t-back { display: none; }
  .t-nav { order: 3; flex: 0 0 100%; padding-bottom: 8px; }
  .t-hero { padding: 26px 0 18px; }
  .t-grid-2 { grid-template-columns: 1fr; }
  .zd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .zd-finder, .zd-match { grid-template-columns: 1fr 1fr; }
  .zd-finder .btn, .zd-match .btn { grid-column: 1 / -1; }
  .zd-match .plus { display: none; }
  .zd-head, .mb-type { grid-template-columns: 1fr; text-align: left; }
  .zd-badge { width: 72px; height: 72px; font-size: 40px; }
  .zd-score { grid-template-columns: 1fr; justify-items: start; }
  .mb-q { padding: 20px; box-shadow: 4px 4px 0 var(--ink); }
  .mb-pair { grid-template-columns: 1fr; }
  .mb-pair .b { text-align: left; border-right: 0; border-left: 5px solid var(--line-2); }
  .mb-scale { gap: 6px; }
  .mb-scale button { height: auto; min-height: 66px; padding: 8px 2px; font-size: 11.5px; line-height: 1.35; gap: 5px; }
  .mb-code { font-size: 42px; }
  .mb-bar { grid-template-columns: 70px 1fr 70px; font-size: 12.5px; }
  .tr-deck { height: 180px; }
  .tr-deck .card-back { width: 74px; height: 124px; }
  .tr-slots { gap: 8px; }
  .tr-slot { width: 96px; } .tr-slot .ph, .flip { width: 92px; height: 154px; }
  .tr-table { padding: 22px 12px 26px; }
  .tr-item { grid-template-columns: 84px 1fr; gap: 12px; padding: 14px; }
  .tr-item .mini { width: 84px; height: 140px; }
  .modal-box { grid-template-columns: 1fr; }
  .modal-box .mini { width: 120px; height: 202px; }
}
