/* おすしタワー（/sushi/・2026-11-24）: 入口はサイトの明るい地のまま、遊ぶ画面（.su-game）は画面全体を使う
   色: 上の帯＝藍ののれん --sai・地＝ひのきのカウンター（canvas）・下の帯＝濃い木 --swood・文字＝こげ茶 --sink。ネタの色は site/js/sushi/draw.js の LOOK */
:root { --sai: #22386e; --sai2: #2c4a8c; --swood: #6e4422; --spanel: #fff8ec; --sline: #e6d3b6; --sink: #3a2a20; --smut: #7a5f48; --shot: #d8392f; --sgold: #f2b21f; }

/* ── 入口 ── */
.su-top { display: grid; gap: 16px; padding-top: 8px; }
/* 入口の絵: 上の藍ののれん（canvas）に名前をのせる。下のげたに皿が並ぶところは字でかくさない */
.su-hero { position: relative; margin: 0; border-radius: 20px; overflow: hidden; background: #ecd0a2; aspect-ratio: 4 / 3; box-shadow: 0 18px 40px -26px rgba(80, 45, 15, .75); }
.su-hero canvas { display: block; width: 100%; height: 100%; }
.su-hero-cap { position: absolute; left: 18px; right: 16px; top: 0; height: 25%; z-index: 1; display: flex; align-items: center; gap: 10px; color: #fff; }
.su-eb { order: 2; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; color: #ffe3a3; padding: 2px 8px; border: 1px solid rgba(255, 227, 163, .6); border-radius: 999px; white-space: nowrap; }
.su-hero-cap b { font-family: var(--f-round); font-size: clamp(24px, 7.2vw, 38px); line-height: 1.1; letter-spacing: .05em; text-shadow: 0 2px 12px rgba(10, 20, 50, .6); white-space: nowrap; }
.su-top .lead b { color: #b8361d; }
.su-start { display: grid; gap: 10px; }
.su-start .btn.go { --go: #d8392f; --go-step: #9c2219; --go-soft: rgba(156, 34, 25, .5); }
.su-note { font-size: 13px; color: var(--muted); }
.su-note b { color: var(--ink); }
.su-h2 { font-size: 20px; margin-top: 12px; }
.su-stages { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.su-st { display: grid; justify-items: center; align-content: center; gap: 0; min-height: 52px; padding: 4px 0; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font-family: var(--f-round); cursor: pointer; touch-action: manipulation; }
.su-st b { font-size: 17px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.su-st i { font-style: normal; font-size: 10.5px; line-height: 1.3; color: var(--sgold); letter-spacing: -.02em; min-height: 1.3em; white-space: nowrap; }
.su-st.done { background: #fff8ec; border-color: #ecd2a6; }
.su-st.next { border-color: #d8392f; box-shadow: 0 0 0 2px rgba(216, 57, 47, .18); }
.su-st[disabled] { cursor: default; color: #b9b9b4; background: #f6f6f3; }
.su-st svg { width: 13px; height: 13px; fill: #c9c9c3; color: #c9c9c3; }
@media (hover: hover) { .su-st:not([disabled]):hover { border-color: var(--ink); } }
.su-how { margin: 0; padding: 0; list-style: none; counter-reset: su; display: grid; gap: 10px; }
.su-how li { counter-increment: su; position: relative; display: grid; gap: 2px; padding: 12px 14px 12px 50px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.su-how li::before { content: counter(su); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--sai); color: #fff; font: 800 14px/1 var(--f-round); }
.su-how b { font-size: 15.5px; }
.su-how span { font-size: 13.5px; color: var(--ink2); line-height: 1.6; }
.su-how span b { font-size: inherit; }
.su-faq details { border-bottom: 1px solid var(--line); padding: 10px 2px; }
.su-faq summary { cursor: pointer; font-weight: 700; }
.su-faq p { margin-top: 6px; font-size: 14px; color: var(--ink2); }

/* ── 遊ぶ画面 ── */
html.su-lock, html.su-lock body { overflow: hidden; overscroll-behavior: none; }
.su-game { position: fixed; inset: 0; z-index: 2147483000; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); background: #ecd0a2; color: var(--sink); font-family: var(--f-body); line-height: 1.5; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.su-game button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
/* 上の帯: 藍ののれん（白い波と、下の切れ目） */
.su-hud { position: relative; display: flex; align-items: center; gap: 10px; padding: max(8px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 9px max(12px, env(safe-area-inset-left, 0px)); color: #fff;
  background: radial-gradient(circle at 50% 100%, transparent 9px, rgba(255, 255, 255, .09) 10px, transparent 11px) 0 0 / 28px 14px, linear-gradient(180deg, var(--sai), var(--sai2)); box-shadow: 0 4px 10px -6px rgba(10, 20, 50, .6); }
.su-hud::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9px; pointer-events: none; background: linear-gradient(90deg, transparent calc(33.3% - 1px), rgba(0, 0, 0, .28) calc(33.3% - 1px), rgba(0, 0, 0, .28) calc(33.3% + 1px), transparent calc(33.3% + 1px), transparent calc(66.6% - 1px), rgba(0, 0, 0, .28) calc(66.6% - 1px), rgba(0, 0, 0, .28) calc(66.6% + 1px), transparent calc(66.6% + 1px)); }
.su-title { display: grid; line-height: 1.2; min-width: 0; }
.su-title b { font: 800 17px/1.2 var(--f-round); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.su-title span { font-size: 12px; color: #ffe3a3; white-space: nowrap; font-variant-numeric: tabular-nums; }
.su-goal { margin-left: auto; display: flex; gap: 1px; padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.su-goal i { width: 17px; height: 17px; background: rgba(255, 255, 255, .35); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.su-goal i.on { background: var(--sgold); }
.su-menu-btn { display: grid; gap: 3px; place-content: center; width: 40px; height: 38px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 10px; background: rgba(255, 255, 255, .1); }
.su-menu-btn i { display: block; width: 16px; height: 2px; border-radius: 2px; background: #fff; }
.su-board { position: relative; min-height: 0; overflow: hidden; }
.su-cv { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; display: block; cursor: pointer; }
.su-banner { position: absolute; left: 50%; top: 8px; z-index: 3; transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px); padding: 8px 14px; border-radius: 12px; background: rgba(58, 42, 32, .92); color: #fff; font-size: 13.5px; font-weight: 700; text-align: center; box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .7); pointer-events: none; animation: su-in .25s ease-out; }
.su-banner.hot { background: rgba(216, 57, 47, .95); }
.su-banner[hidden] { display: none; }
.su-toast { position: absolute; left: 50%; bottom: 10px; z-index: 3; transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px); padding: 8px 14px; border-radius: 12px; background: rgba(255, 248, 236, .97); border: 1px solid var(--sline); color: var(--sink); font-size: 13.5px; font-weight: 700; text-align: center; box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .5); pointer-events: none; }
.su-toast[hidden] { display: none; }
.su-toast.in { animation: su-in .2s ease-out; }
/* 下の帯: 濃い木のカウンターのふち＋道具 */
.su-tools { display: flex; gap: 8px; justify-content: center; padding: 8px max(10px, env(safe-area-inset-right, 0px)) max(8px, env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 3px, transparent 3px 11px), linear-gradient(180deg, #7d4e27, var(--swood)); box-shadow: inset 0 2px 0 rgba(255, 225, 180, .25); }
.su-tool { position: relative; flex: 1 1 0; max-width: 120px; min-width: 0; display: grid; justify-items: center; gap: 1px; padding: 7px 2px 6px; border-radius: 14px; border: 0; background: var(--spanel); box-shadow: 0 3px 0 #4a2c14; color: var(--sink); }
.su-tool:active { transform: translateY(2px); box-shadow: 0 1px 0 #4a2c14; }
.su-tool svg { width: 26px; height: 26px; color: var(--sai); }
.su-tool span { font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.su-tool em { position: absolute; top: -7px; right: -3px; min-width: 22px; padding: 1px 6px; border-radius: 999px; background: var(--shot); color: #fff; font: 800 12px/1.4 var(--f-round); font-style: normal; text-align: center; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--swood); }
.su-tool.zero { opacity: .5; }
.su-tool.zero em { background: #8d8173; }

/* 札（メニュー・クリア・おしまい） */
.su-sheet { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 14px; background: rgba(40, 25, 15, .45); animation: su-fade .2s ease-out; }
.su-sheet[hidden] { display: none; }
.su-card { width: min(420px, 100%); max-height: calc(100% - 4px); overflow: auto; padding: 18px 18px 16px; border-radius: 20px; background: var(--spanel); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .6); display: grid; gap: 12px; animation: su-up .25s ease-out; overscroll-behavior: contain; }
.su-card h2 { font: 800 23px/1.3 var(--f-round); text-align: center; }
.su-card .sub { font-size: 14px; color: var(--smut); text-align: center; }
.su-eyebrow { text-align: center; font-size: 13px; font-weight: 800; color: var(--sai2); letter-spacing: .06em; margin-bottom: -10px; }
.su-win h2 { color: var(--shot); font-size: 27px; }
.su-stars { display: flex; justify-content: center; gap: 6px; height: 56px; align-items: center; }
.su-bigstar { display: block; font-size: 46px; line-height: 1; color: #e3d6c1; text-shadow: 0 2px 0 rgba(120, 80, 30, .2); }
.su-bigstar:nth-child(2) { font-size: 54px; transform: translateY(-4px); }
.su-bigstar.on { color: var(--sgold); text-shadow: 0 2px 0 #c98a0c, 0 0 14px rgba(255, 200, 60, .55); animation: su-star .45s cubic-bezier(.2, 1.6, .4, 1) both; animation-delay: var(--d, 0s); }
.su-facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; color: var(--smut); }
.su-facts b { color: var(--sink); font-variant-numeric: tabular-nums; }
.su-why { margin: 0; padding: 8px 12px; list-style: none; display: grid; gap: 2px; border-radius: 12px; background: #fff; border: 1px dashed var(--sline); font-size: 13px; color: var(--smut); }
.su-why li::before { content: "・"; }
.su-why li.ok { color: #2f7a4f; font-weight: 700; }
.su-why li.ok::before { content: "★ "; color: var(--sgold); }
.su-best { text-align: center; font-size: 13.5px; font-weight: 700; color: #2f7a4f; }
/* 共有のかたまり（../js/share.js の shareBlock）。札の中なので、上の余白をつめて見出しを小さく左に
   .su-game button の font: inherit・color: inherit が、共有の部品のボタンの字に効かないように戻す */
.su-sharebox:empty { display: none; }
.su-sharebox .section { margin-top: 2px; gap: 10px; }
.su-sharebox .share > h2 { font: 800 15px/1.3 var(--f-round); text-align: left; }
.su-sharebox .btn { min-height: 50px; color: #fff; font: 700 16px/1.3 var(--f-round); }
.su-sharebox .seg button { font: 700 13px/1.5 var(--f-body); }
.su-sharebox .share-apps { grid-template-columns: repeat(auto-fit, minmax(124px, 1fr)); }
.su-sharebox .seg button:not([aria-pressed="true"]) { color: var(--smut); }
.su-lock .toast, .su-lock .share-sheet { z-index: 2147483100; }
.su-lock .pc-cols .toast { left: 50%; }
.su-acts { display: grid; gap: 8px; }
.su-acts .btn { min-height: 48px; font: 800 16px/1.3 var(--f-round); }
.su-acts .btn.su-main { background: var(--shot); color: #fff; }
.su-menu-list { display: grid; gap: 8px; }
.su-menu-list button { min-height: 48px; border-radius: 12px; border: 1px solid var(--sline); background: #fff; font-weight: 700; }
.su-help { display: grid; gap: 8px; font-size: 13.5px; line-height: 1.6; }
.su-help p { margin: 0; }

@keyframes su-in { from { opacity: 0; transform: translate(-50%, -6px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes su-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes su-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes su-star { 0% { opacity: 0; transform: scale(.2) rotate(-40deg); } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .su-banner, .su-toast.in, .su-card, .su-sheet, .su-bigstar.on { animation: none; } }

/* せまい画面 */
@media (max-width: 350px) {
  .su-hud { gap: 6px; }
  .su-title b { font-size: 15.5px; }
  .su-goal { padding: 3px 6px; }
  .su-goal i { width: 15px; height: 15px; }
  .su-stages { gap: 5px; }
}
/* 横向き・パソコン: 道具は右の列に */
@media (orientation: landscape) and (min-width: 700px) {
  .su-game { grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr) auto; }
  .su-hud { grid-column: 1 / -1; }
  .su-tools { flex-direction: column; justify-content: center; gap: 14px; padding: 10px max(12px, env(safe-area-inset-right, 0px)) max(10px, env(safe-area-inset-bottom, 0px)) 12px; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 3px, transparent 3px 11px), linear-gradient(90deg, #7d4e27, var(--swood)); }
  .su-tool { flex: 0 0 auto; width: 92px; max-width: none; padding: 10px 4px 8px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .su-hud { padding-top: max(4px, env(safe-area-inset-top, 0px)); padding-bottom: 5px; }
  .su-tools { gap: 6px; }
  .su-tool { width: 76px; padding: 5px 2px 4px; }
  .su-tool svg { width: 20px; height: 20px; }
}
