/* ① top screen (shopさん 2026-11-01 03:02): big title like 少牌マイティ / OFC, charcoal × red (same as the standard table).
   Sizes in --u (1u = 1px on a 390x844 phone), capped so PC does not get huge. */
#title { position: fixed; inset: 0; z-index: 5; overflow-x: hidden; overflow-y: auto; color: #f1eeee;
  --u: min(calc(100vw / 390), calc(100vh / 800), 1.25px);
  background: radial-gradient(120% 70% at 50% 28%, #3a3d42 0%, #1c1e21 45%, #0d0e10 100%); }
@supports (height: 100dvh) { #title { --u: min(calc(100vw / 390), calc(100dvh / 800), 1.25px); } }
#title::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .05;
  background: repeating-linear-gradient(-30deg, #ff4d4d 0 1px, transparent 1px 22px); }
.tt-col { position: relative; width: calc(390 * var(--u)); max-width: 100%; min-height: 100%; margin: 0 auto; display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 12 * var(--u)) calc(24 * var(--u)) calc(env(safe-area-inset-bottom, 0px) + 22 * var(--u)); }
.tt-top { display: flex; justify-content: space-between; align-items: center; height: calc(30 * var(--u)); }
.tt-tag { font-size: calc(12 * var(--u)); padding: calc(6 * var(--u)) calc(12 * var(--u)); border-radius: 99px; background: rgba(255, 77, 77, .12);
  border: 1px solid rgba(255, 77, 77, .55); color: #ff9a9a; font-weight: 700; letter-spacing: .05em; }
.tt-icon { width: calc(30 * var(--u)); height: calc(30 * var(--u)); border-radius: calc(9 * var(--u)); padding: 0; display: grid; place-items: center;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); color: #ddd; font-size: calc(14 * var(--u)); }
.tt-hero { position: relative; height: calc(270 * var(--u)); flex: none; margin-top: auto; }
.tt-halo { position: absolute; left: 50%; top: calc(14 * var(--u)); width: calc(240 * var(--u)); height: calc(240 * var(--u)); margin-left: calc(-120 * var(--u)); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 77, 77, .30), rgba(142, 15, 22, .12) 60%, transparent 76%);
  box-shadow: 0 0 0 1px rgba(255, 77, 77, .22), 0 0 0 calc(14 * var(--u)) rgba(255, 77, 77, .04), 0 0 0 calc(32 * var(--u)) rgba(255, 77, 77, .025); }
.tt-fan { position: absolute; left: 50%; top: calc(150 * var(--u)); width: 0; height: 0; }
.tt-fan i { position: absolute; left: calc(-46 * var(--u)); top: calc(-150 * var(--u)); width: calc(92 * var(--u)); height: calc(129 * var(--u)); border-radius: calc(7 * var(--u));
  background: #fff center/cover no-repeat; box-shadow: 0 calc(6 * var(--u)) calc(16 * var(--u)) rgba(0, 0, 0, .7); transform-origin: 50% 160%; }
.tt-fan i:nth-child(1) { transform: rotate(-28deg); } .tt-fan i:nth-child(2) { transform: rotate(-14deg); } .tt-fan i:nth-child(3) { transform: rotate(0deg); }
.tt-fan i:nth-child(4) { transform: rotate(14deg); } .tt-fan i:nth-child(5) { transform: rotate(28deg); }
.tt-logo { text-align: center; margin-top: calc(4 * var(--u)); }
.tt-en { font-family: "Cinzel", "Times New Roman", serif; font-weight: 800; font-size: calc(44 * var(--u)); line-height: 1; letter-spacing: calc(3 * var(--u)); padding-left: calc(3 * var(--u)); white-space: nowrap;
  background: linear-gradient(180deg, #ffd9d9 0%, #ff4d4d 45%, #8e0f16 80%, #ff7a7a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .55)) drop-shadow(0 0 calc(14 * var(--u)) rgba(255, 77, 77, .28)); }
.tt-rule { display: flex; align-items: center; justify-content: center; gap: calc(8 * var(--u)); margin-top: calc(8 * var(--u)); color: #ff6b6b; font-size: calc(12 * var(--u)); }
.tt-rule b { display: block; width: calc(50 * var(--u)); height: 1px; background: linear-gradient(90deg, transparent, #ff6b6b); } .tt-rule b:last-child { transform: scaleX(-1); }
.tt-jp { margin: calc(8 * var(--u)) 0 0; font-size: calc(28 * var(--u)); font-weight: 800; letter-spacing: calc(4 * var(--u)); color: #f4f1f1; }
.tt-sub { font-size: calc(12 * var(--u)); color: #b9b1b1; letter-spacing: calc(2 * var(--u)); margin-top: calc(4 * var(--u)); }
.tt-sect { display: flex; align-items: center; gap: calc(7 * var(--u)); font-size: calc(12 * var(--u)); letter-spacing: calc(2.7 * var(--u)); color: #ff7a7a; margin: auto 0 calc(10 * var(--u)); padding-top: calc(22 * var(--u)); }
.tt-sect::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 77, 77, .6), transparent); }
.tt-opp { display: flex; flex-direction: column; gap: calc(12 * var(--u)); margin-bottom: auto; }
.tt-opp button { height: calc(72 * var(--u)); border-radius: calc(16 * var(--u)); display: flex; align-items: center; gap: calc(14 * var(--u)); padding: 0 calc(18 * var(--u));
  font-size: calc(22 * var(--u)); font-weight: 800; text-align: left; color: #f4ecec; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); transition: transform .1s; }
.tt-opp button#pickAi { background: linear-gradient(135deg, #d42a35, #7a0f19); border-color: #ff8a8a; box-shadow: 0 calc(6 * var(--u)) calc(16 * var(--u)) rgba(212, 42, 53, .4), inset 0 1px 0 rgba(255, 255, 255, .25); }
.tt-opp button#pickPvp { background: linear-gradient(135deg, #3a3d42, #1f2124); border-color: #ff4d4d99; }
.tt-opp button:active { transform: scale(.985); }
.tt-opp em { font-style: normal; flex: none; width: calc(42 * var(--u)); height: calc(42 * var(--u)); border-radius: 50%; display: grid; place-items: center;
  font-family: "Cinzel", serif; font-size: calc(15 * var(--u)); border: 1.5px solid #ffd0d0; color: #fff; }
.tt-opp span { line-height: 1.2; white-space: nowrap; } .tt-opp small { display: block; font-size: calc(12 * var(--u)); font-weight: 500; opacity: .8; margin-top: calc(2 * var(--u)); }
/* landscape phone: hero and buttons side by side so everything fits without scrolling */
@media (orientation: landscape) and (max-height: 520px) {
  #title { --u: min(calc(100vh / 420), calc(100vw / 800), 1.25px); }
  @supports (height: 100dvh) { #title { --u: min(calc(100dvh / 420), calc(100vw / 800), 1.25px); } }
  .tt-col { min-height: 100%; height: 100%; }
  .tt-col { width: calc(760 * var(--u)); display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto auto 1fr; column-gap: calc(28 * var(--u)); }
  .tt-top { grid-column: 1 / 3; }
  .tt-hero { grid-column: 1; grid-row: 2 / 4; height: calc(200 * var(--u)); margin: auto 0 0; transform: scale(.78); transform-origin: 50% 100%; }
  .tt-logo { grid-column: 1; grid-row: 4; }
  .tt-en { font-size: calc(40 * var(--u)); } .tt-jp { font-size: calc(22 * var(--u)); margin-top: calc(4 * var(--u)); }
  .tt-sect { grid-column: 2; grid-row: 2; margin: auto 0 calc(10 * var(--u)); padding-top: 0; }
  .tt-opp { grid-column: 2; grid-row: 3 / 5; margin: 0; }
}
/* ② settings header */
.set-head { display: flex; align-items: center; gap: 10px; margin: 4px 0 10px; min-height: 40px; }
.set-back { flex: none; height: 36px; border-radius: 18px; border: 1px solid rgba(255, 77, 77, .6); background: rgba(255, 255, 255, .06); font-size: 13px; font-weight: 700; padding: 0 14px; white-space: nowrap; }
.set-ttl { margin: 0 !important; flex: 1; min-width: 0; font-size: 20px !important; line-height: 1.2; }
.set-ttl span { display: block; font-size: 12px; color: #ff8a8a; letter-spacing: .1em; font-weight: 600; }
.pickSum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 6px; }
.pickSum #sumMode { padding: 6px 12px; border-radius: 99px; font-size: 14px; font-weight: 700; background: rgba(255, 77, 77, .14); border: 1px solid rgba(255, 77, 77, .55); }
.sumHint { flex-basis: 100%; font-size: 11px; opacity: .65; }
/* 2026-11-01 13:32: replaceable title image. Overwrite public/assets/title.png (same name) to change it; if the file is missing the CSS card fan shows. */
.tt-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.tt-hero.has-img .tt-fan, .tt-hero.has-img .tt-halo { display: none; }
.tt-btns { display: flex; gap: calc(8 * var(--u)); }
.tt-icon.muteBtn.off { opacity: .6; }
/* 2026-11-01 23:30 名前が Mix Poker Ensemble（18文字）になったので、英字ロゴを1行に収まる大きさに */
.tt-en, .tt-en { font-size: calc(25 * var(--u)) !important; letter-spacing: calc(1 * var(--u)); padding: 0 calc(2 * var(--u)); }
