/* Ａの競馬予想 — 「ナイター競馬の大一番」をテーマにした派手めのデザイン
   夜空＋照明、芝のストライプ、金の縁取り、ゴール板の市松、勝負服の色、馬券風の買い目 */
:root {
  color-scheme: dark;
  --bg: #050b08; --ink: #f5f1e6; --muted: #b9c2b4; --line: rgba(232, 190, 92, .28);
  --gold: #f2c45a; --gold-2: #ffe7a3; --gold-d: #a8761d; --red: #e8323c; --red-d: #8f0f18;
  --turf: #0f5a2c; --turf-2: #13703a; --turf-d: #072c16; --panel: rgba(12, 26, 18, .88);
  --ok: #46e08a; --ng: #ff6b6b; --blue: #7cc7ff;
  --r: 16px; --shadow: 0 10px 30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(242, 196, 90, .18) inset;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', Meiryo, sans-serif;
  color: var(--ink); font-size: 15px; line-height: 1.65; min-height: 100dvh;
  background:
    radial-gradient(1200px 500px at 15% -10%, rgba(255, 236, 170, .18), transparent 60%),
    radial-gradient(900px 420px at 95% -5%, rgba(255, 220, 140, .14), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 2px, transparent 2px 120px),
    linear-gradient(180deg, #071410 0%, #050b08 45%, #04140a 100%);
  background-attachment: fixed;
}
/* 照明のきらめき（ゆっくり明滅） */
.sky { position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(2px 2px at 12% 8%, #fff8, transparent), radial-gradient(2px 2px at 32% 4%, #fff6, transparent),
    radial-gradient(1.5px 1.5px at 58% 9%, #fff7, transparent), radial-gradient(2px 2px at 78% 5%, #fff8, transparent), radial-gradient(1.5px 1.5px at 92% 12%, #fff6, transparent);
  animation: twinkle 4s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .4; } to { opacity: 1; } }
a { color: var(--gold-2); }

/* ── ヘッダー ── */
.bar { position: sticky; top: 0; z-index: 30; padding: calc(8px + env(safe-area-inset-top)) 12px 0;
  background: linear-gradient(180deg, rgba(3, 10, 6, .97), rgba(6, 26, 14, .95));
  border-bottom: 2px solid transparent; border-image: linear-gradient(90deg, transparent, var(--gold), var(--red), var(--gold), transparent) 1;
  box-shadow: 0 6px 20px rgba(0,0,0,.6); }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; padding-bottom: 6px; }
.logo { font-size: 22px; filter: drop-shadow(0 0 6px rgba(242,196,90,.7)); }
.brand-t { font-size: 19px; font-weight: 900; letter-spacing: .06em;
  background: linear-gradient(100deg, #fff4cf 0%, var(--gold) 30%, #fff 50%, var(--gold) 70%, #b8862a 100%); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 5s linear infinite; }
.brand-k { font-size: 10px; font-weight: 800; letter-spacing: .25em; color: var(--red); text-shadow: 0 0 8px rgba(232,50,60,.6); }
@keyframes shine { from { background-position: 200% 0; } to { background-position: -20% 0; } }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex-shrink: 0; color: #d9dfd2; text-decoration: none; padding: 7px 13px; font-size: 13.5px; font-weight: 800; border-radius: 999px;
  border: 1px solid rgba(242,196,90,.25); background: rgba(255,255,255,.04); white-space: nowrap; }
.tabs a.on { color: #2a1a00; border-color: transparent; background: linear-gradient(180deg, #ffe7a3, var(--gold) 55%, #c9902c);
  box-shadow: 0 0 14px rgba(242,196,90,.55), 0 2px 0 #8a5d12; }

.view { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; padding: 14px 12px 24px; min-width: 0; }
.loading { text-align: center; color: var(--muted); padding: 50px 0; font-weight: 700; }
.runner { display: inline-block; animation: gallop .6s ease-in-out infinite alternate; }
@keyframes gallop { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-4px) rotate(3deg); } }
.foot { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; padding: 12px 16px calc(24px + env(safe-area-inset-bottom)); font-size: 11.5px; color: #8f9a8c; line-height: 1.7; }

/* ── 共通のパネル ── */
.card { position: relative; background: var(--panel); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; min-width: 0;
  border: 1px solid rgba(242,196,90,.22); animation: rise .35s ease both; }
.card.glow { border-color: rgba(242,196,90,.55); box-shadow: 0 0 0 1px rgba(242,196,90,.35) inset, 0 0 28px rgba(242,196,90,.18), 0 12px 30px rgba(0,0,0,.6); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.h1 { font-size: 21px; font-weight: 900; }
.h2 { font-size: 15.5px; font-weight: 900; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; color: var(--gold-2); text-shadow: 0 0 10px rgba(242,196,90,.25); }
.subh { font-size: 13px; font-weight: 800; color: var(--gold-2); margin: 12px 0 4px; }
.subh small { font-weight: 600; color: var(--muted); }
.sub { color: var(--muted); font-size: 12.5px; }
.sub b { color: var(--ink); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.lined { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.grow { flex: 1; min-width: 0; }
.scroll { overflow-x: auto; }
.note { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; color: #d3dacd; line-height: 1.75; }
.err { background: rgba(232,50,60,.15); color: #ffb3b3; border: 1px solid rgba(232,50,60,.5); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 10px; }
.warn { background: rgba(242,196,90,.12); border: 1px solid rgba(242,196,90,.55); border-radius: 12px; padding: 12px; font-size: 13.5px; }
.list { padding-left: 18px; font-size: 13.5px; line-height: 1.8; }
.list li { margin-bottom: 4px; }
.list li::marker { color: var(--gold); }

/* ボタン・入力 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 16px; border-radius: 12px; font: inherit; font-weight: 800; cursor: pointer;
  text-decoration: none; color: var(--ink); background: rgba(255,255,255,.06); border: 1.5px solid rgba(242,196,90,.55); }
.btn:hover { background: rgba(242,196,90,.12); }
.btn.gold { color: #2b1a00; border: none; background: linear-gradient(180deg, #fff1c4 0%, var(--gold) 45%, #c58a22 100%);
  box-shadow: 0 0 18px rgba(242,196,90,.45), 0 3px 0 #7d520c, inset 0 1px 0 #fff8; text-shadow: 0 1px 0 #fff6; letter-spacing: .05em; }
.btn.gold:active { transform: translateY(2px); box-shadow: 0 0 10px rgba(242,196,90,.4), 0 1px 0 #7d520c; }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn.line { background: #06c755; border-color: #06c755; color: #fff; }
.btn:disabled { opacity: .6; }
input, select { font: inherit; padding: 10px 12px; border-radius: 12px; border: 1.5px solid rgba(242,196,90,.45); background: rgba(0,0,0,.35); color: var(--ink); width: 100%; max-width: 100%; }
input:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242,196,90,.25); }
select option { background: #0b1d12; }
label.f { display: block; margin-bottom: 10px; } label.f > span { display: block; font-size: 12px; font-weight: 800; color: var(--gold-2); margin-bottom: 4px; }
.ck { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.ck input { width: 19px; height: 19px; flex-shrink: 0; accent-color: var(--gold); }
.ckgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 0 10px; }

/* チップ・グレード */
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 800; padding: 2px 10px; border-radius: 999px; white-space: nowrap;
  background: rgba(255,255,255,.08); color: var(--muted); border: 1px solid rgba(255,255,255,.12); }
.chip.ok, .chip.hitc { background: rgba(70,224,138,.15); color: var(--ok); border-color: rgba(70,224,138,.5); }
.chip.ng { background: rgba(255,107,107,.13); color: var(--ng); border-color: rgba(255,107,107,.45); }
.chip.live { background: rgba(124,199,255,.14); color: var(--blue); border-color: rgba(124,199,255,.5); animation: pulse 1.8s ease-in-out infinite; }
.chip.goldc { background: rgba(242,196,90,.16); color: var(--gold-2); border-color: rgba(242,196,90,.6); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(124,199,255,.45); } 50% { box-shadow: 0 0 0 5px rgba(124,199,255,0); } }
.grade { display: inline-block; vertical-align: middle; font-size: 12px; font-weight: 900; padding: 1px 9px; border-radius: 6px; letter-spacing: .05em; color: #fff;
  background: linear-gradient(180deg, #4f7cff, #2445b8); box-shadow: 0 0 10px rgba(79,124,255,.5); }
.grade.g-G1 { background: linear-gradient(180deg, #ff5a63, var(--red) 50%, var(--red-d)); box-shadow: 0 0 14px rgba(232,50,60,.8), inset 0 1px 0 #fff6; animation: g1 2.4s ease-in-out infinite; }
.grade.g-G2 { background: linear-gradient(180deg, #ff8a3d, #c4531a); }
@keyframes g1 { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.35); } }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 18px; font-weight: 800; letter-spacing: 2px; color: var(--gold-2); }
.bigcode { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 26px; font-weight: 900; letter-spacing: 3px; text-align: center; padding: 14px 8px; border-radius: 14px;
  color: #2b1a00; background: linear-gradient(180deg, #fff3cf, var(--gold) 60%, #c98f26); box-shadow: 0 0 24px rgba(242,196,90,.5), inset 0 2px 0 #fff8; }

/* ── 参加画面のゲート ── */
.gate { text-align: center; padding: 26px 10px 18px; margin-bottom: 14px; border-radius: var(--r); position: relative; overflow: hidden;
  background: repeating-linear-gradient(90deg, var(--turf) 0 40px, var(--turf-2) 40px 80px); box-shadow: var(--shadow); border: 1px solid rgba(242,196,90,.4); }
.gate::after { content: ''; position: absolute; inset: 0; background: radial-gradient(400px 160px at 50% 0%, rgba(255,240,190,.35), transparent 70%); }
.gate > * { position: relative; z-index: 1; }
.gate-flag { font-size: 40px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.6)); }
.gate-t { font-size: 28px; font-weight: 900; letter-spacing: .08em; color: #fff; text-shadow: 0 0 18px rgba(242,196,90,.9), 0 3px 0 rgba(0,0,0,.4); }
.gate-s { font-size: 11px; font-weight: 800; letter-spacing: .2em; color: var(--gold-2); margin-top: 4px; }

/* ── バナー（各ページの見出し） ── */
.banner { position: relative; overflow: hidden; border-radius: var(--r); padding: 16px 16px 14px; margin-bottom: 14px; border: 1px solid rgba(242,196,90,.45);
  background: linear-gradient(120deg, rgba(232,50,60,.25), transparent 40%), repeating-linear-gradient(90deg, rgba(15,90,44,.95) 0 34px, rgba(19,112,58,.95) 34px 68px);
  box-shadow: var(--shadow); animation: rise .35s ease both; }
.banner::before { content: ''; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(255,236,170,.45), transparent 65%); }
.banner-k { position: relative; font-size: 10.5px; font-weight: 900; letter-spacing: .28em; color: var(--gold-2); }
.banner-t { position: relative; font-size: 22px; font-weight: 900; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.45), 0 0 16px rgba(242,196,90,.55); }
.banner-s { position: relative; font-size: 12.5px; color: #e9f1e2; margin-top: 2px; }

/* ── レースの一覧 ── */
.date-h { display: flex; align-items: center; gap: 10px; margin: 20px 2px 10px; font-size: 13px; font-weight: 900; color: var(--gold-2); letter-spacing: .05em; }
.date-h::before, .date-h::after { content: ''; flex: 1; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.race-card { display: block; position: relative; text-decoration: none; color: var(--ink); border-radius: var(--r); padding: 14px 14px 12px 18px; margin-bottom: 14px; overflow: hidden;
  background: linear-gradient(160deg, rgba(23, 46, 31, .96), rgba(8, 20, 12, .96)); border: 1px solid rgba(242,196,90,.35); box-shadow: var(--shadow); animation: rise .35s ease both;
  transition: transform .15s, box-shadow .15s; }
.race-card:hover { transform: translateY(-2px); box-shadow: 0 0 26px rgba(242,196,90,.3), var(--shadow); }
.race-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, var(--gold), var(--gold-d)); }
.race-card.is-g1 { border-color: rgba(232,50,60,.7); background: radial-gradient(420px 160px at 100% 0%, rgba(232,50,60,.28), transparent 70%), linear-gradient(160deg, rgba(36, 24, 18, .97), rgba(10, 18, 12, .97)); }
.race-card.is-g1::before { background: linear-gradient(180deg, #ff6a72, var(--red), var(--red-d)); box-shadow: 0 0 14px var(--red); }
.race-card.mini { padding: 10px 14px 10px 18px; }
.rc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rc-place { font-size: 11.5px; font-weight: 800; color: var(--gold-2); letter-spacing: .05em; }
.rc-t { font-size: 21px; font-weight: 900; line-height: 1.3; margin-top: 2px; text-shadow: 0 2px 0 rgba(0,0,0,.5); }
.rc-c { font-size: 12.5px; color: var(--muted); }
.rc-go { text-align: right; font-size: 12.5px; font-weight: 800; color: var(--gold); margin-top: 8px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.kpi { border-radius: 12px; padding: 9px 6px; text-align: center; background: rgba(0,0,0,.35); border: 1px solid rgba(242,196,90,.25); }
.kpi b { display: block; font-size: 17px; font-weight: 900; color: var(--gold-2); line-height: 1.3; text-shadow: 0 0 10px rgba(242,196,90,.35); }
.kpi span { font-size: 10.5px; color: var(--muted); }
.kpis.big .kpi b { font-size: 22px; }
.plus { color: var(--ok) !important; } .minus { color: var(--ng) !important; }

/* ── 予想のヒーロー（芝＋照明＋ゴール板） ── */
.hero { position: relative; overflow: hidden; border-radius: var(--r); margin-bottom: 12px; border: 1px solid rgba(242,196,90,.5); box-shadow: var(--shadow);
  background: radial-gradient(520px 220px at 80% -10%, rgba(255,240,190,.38), transparent 65%),
    linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55)), repeating-linear-gradient(90deg, var(--turf) 0 44px, var(--turf-2) 44px 88px); }
.hero-in { position: relative; padding: 16px 16px 14px; }
.hero-date { font-size: 12px; font-weight: 800; color: var(--gold-2); letter-spacing: .05em; }
.hero-t { font-size: 27px; font-weight: 900; line-height: 1.25; color: #fff; margin: 2px 0; text-shadow: 0 3px 0 rgba(0,0,0,.45), 0 0 22px rgba(242,196,90,.7); }
.hero-c { font-size: 13px; color: #e6efdf; font-weight: 700; }
.hero-lead { margin-top: 12px; padding: 10px 12px; font-size: 13.5px; line-height: 1.8; color: #fffbea; background: rgba(0,0,0,.45); border-left: 4px solid var(--gold); border-radius: 0 10px 10px 0; }
.finish { height: 14px; background: conic-gradient(#fff 25%, #111 0 50%, #fff 0 75%, #111 0) 0 0 / 14px 14px; opacity: .9; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 14px; padding: 5px; border-radius: 14px; background: rgba(0,0,0,.45); border: 1px solid rgba(242,196,90,.35); }
.seg a { text-align: center; padding: 10px; border-radius: 10px; font-weight: 900; text-decoration: none; color: #d9dfd2; }
.seg a.on { color: #2b1a00; background: linear-gradient(180deg, #fff1c4, var(--gold) 55%, #c58a22); box-shadow: 0 0 14px rgba(242,196,90,.5); }

/* 印・馬番（勝負服＝枠の色）・確率のレーン */
.horse { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.horse:last-of-type { border-bottom: none; }
.medal { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 900; }
.medal.m1 { color: #3a2500; background: radial-gradient(circle at 35% 30%, #fff6cf, var(--gold) 55%, #9c6a12); box-shadow: 0 0 16px rgba(242,196,90,.8); }
.medal.m2 { color: #222; background: radial-gradient(circle at 35% 30%, #fff, #c9d1da 55%, #7d8794); box-shadow: 0 0 10px rgba(220,230,240,.5); }
.medal.m3 { color: #2b1200; background: radial-gradient(circle at 35% 30%, #ffd9b0, #d58a45 55%, #8a4b17); box-shadow: 0 0 10px rgba(213,138,69,.5); }
.medal.m4 { color: #fff; background: radial-gradient(circle at 35% 30%, #ffb3b8, var(--red) 55%, var(--red-d)); box-shadow: 0 0 10px rgba(232,50,60,.6); }
.medal.m5 { color: var(--gold-2); background: rgba(255,255,255,.08); border: 1px solid rgba(242,196,90,.5); }
.medal.none { background: transparent; }
.saddle { flex-shrink: 0; width: 32px; height: 34px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 15px;
  border: 1px solid rgba(0,0,0,.4); box-shadow: inset 0 -3px 0 rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.5); }
.w1 { background: #fff; color: #111; } .w2 { background: #141414; color: #fff; border-color: #666; } .w3 { background: #e5232f; color: #fff; } .w4 { background: #2366d9; color: #fff; }
.w5 { background: #f5d520; color: #111; } .w6 { background: #1f9b47; color: #fff; } .w7 { background: #f28a12; color: #111; } .w8 { background: #f4a6c3; color: #111; }
.hn { font-weight: 900; font-size: 16px; }
.pv { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.pv b { color: var(--gold-2); font-size: 13px; }
.cm { font-size: 12.5px; color: #c9d2c4; margin-top: 4px; line-height: 1.6; }
.lane { position: relative; height: 14px; border-radius: 7px; margin: 5px 18px 2px 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 10%), linear-gradient(90deg, #0b3a1d, #0f4a25); border: 1px solid rgba(255,255,255,.1); }
.lane i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; }
.lane i.t3 { background: linear-gradient(90deg, rgba(124,199,255,.25), rgba(124,199,255,.55)); }
.lane i.w { background: linear-gradient(90deg, #c58a22, var(--gold), #fff0b8); box-shadow: 0 0 10px rgba(242,196,90,.7); min-width: 6px; animation: run .9s cubic-bezier(.2,.8,.2,1) both; }
.lane i.w span { position: absolute; right: -16px; top: -9px; font-size: 18px; transform: scaleX(-1); filter: drop-shadow(0 2px 2px rgba(0,0,0,.7)); }
@keyframes run { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }
.legend { font-size: 11px; color: var(--muted); display: flex; gap: 14px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 14px; height: 8px; border-radius: 3px; margin-right: 4px; vertical-align: middle; }
.legend .lg-w { background: var(--gold); } .legend .lg-t { background: rgba(124,199,255,.55); }

/* WIN5 */
.leg { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.leg:last-child { border-bottom: none; }
.leg-no { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; color: #2b1a00;
  background: radial-gradient(circle at 35% 30%, #fff6cf, var(--gold) 60%, #9c6a12); box-shadow: 0 0 10px rgba(242,196,90,.6); }
.leg-no.sm { width: 22px; height: 22px; font-size: 12px; }
.lt { font-weight: 900; font-size: 15px; }
.pick { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; }
.pick .nm { font-weight: 900; font-size: 15px; }

/* ── 買い目（馬券風） ── */
.sumbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; margin-bottom: 12px; border-radius: 12px; font-weight: 900;
  background: linear-gradient(90deg, rgba(232,50,60,.35), rgba(242,196,90,.25)); border: 1px solid rgba(242,196,90,.55); }
.sumbar b { color: var(--gold-2); font-size: 17px; }
.buy-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 16px 2px 8px; font-weight: 900; }
.buy-h a { color: #fff; text-decoration: none; font-size: 17px; } .buy-h span { color: var(--gold-2); font-size: 13px; white-space: nowrap; }
.ticket { position: relative; margin-bottom: 14px; border-radius: 12px; overflow: hidden; color: #2a2116;
  background: linear-gradient(180deg, #fffaf0, #f6ecd2); box-shadow: 0 8px 22px rgba(0,0,0,.55), 0 0 0 2px rgba(242,196,90,.6); animation: rise .35s ease both; }
.ticket::before, .ticket::after { content: ''; position: absolute; top: 34px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); }
.ticket::before { left: -9px; } .ticket::after { right: -9px; }
.tk-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 16px; color: #fff; font-weight: 900;
  background: linear-gradient(90deg, #0f5a2c, #13703a); border-bottom: 2px dashed #f6ecd2; }
.tk-head b { color: var(--gold-2); font-size: 18px; text-shadow: 0 0 8px rgba(0,0,0,.4); white-space: nowrap; }
.tk-row, .tk-leg { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px dashed rgba(42,33,22,.25); font-size: 14px; flex-wrap: wrap; }
.tk-row.hit { background: rgba(232,50,60,.12); position: relative; }
.tk-row.hit::after { content: '的中'; position: absolute; right: 10px; top: 50%; transform: translateY(-50%) rotate(-12deg); color: var(--red); border: 2px solid var(--red); border-radius: 6px; padding: 0 6px; font-weight: 900; font-size: 13px; background: #fffaf0; }
.tk-type { font-weight: 800; color: #0f5a2c; min-width: 52px; }
.tk-pick { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 900; font-size: 17px; letter-spacing: 1px; color: #1a1209; }
.tk-yen { font-weight: 900; white-space: nowrap; }
.tk-ev { font-size: 11px; color: #6b5a3c; white-space: nowrap; }
.tk-leg b { font-weight: 900; }
.tk-foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 9px 14px; font-weight: 900; background: rgba(15,90,44,.1); }
.tk-note { padding: 8px 14px; font-size: 12px; color: #5b4a2c; border-top: 1px dashed rgba(42,33,22,.2); line-height: 1.7; }
.tag { font-size: 10.5px; font-weight: 900; padding: 1px 7px; border-radius: 6px; white-space: nowrap; }
.tag.本線 { background: #0f5a2c; color: #fff; } .tag.配当狙い { background: #b0761a; color: #fff; } .tag.ロマン { background: linear-gradient(90deg, #8a2be2, var(--red)); color: #fff; }

/* 結果 */
.result { overflow: hidden; }
.result.win { border-color: rgba(70,224,138,.7); box-shadow: 0 0 30px rgba(70,224,138,.25), var(--shadow); }
.stamp { position: absolute; right: 14px; top: 10px; transform: rotate(-12deg); font-size: 20px; font-weight: 900; padding: 2px 10px; border-radius: 8px; border: 3px solid currentColor; }
.result.win .stamp { color: var(--ok); text-shadow: 0 0 10px rgba(70,224,138,.6); } .result.lose .stamp { color: var(--ng); }

/* 表 */
.tk { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tk td, .tk th { padding: 7px 5px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: left; }
.tk th { font-size: 11px; color: var(--gold-2); font-weight: 800; }
.tk .n { text-align: right; white-space: nowrap; }

@media (max-width: 520px) { .hide-sp { display: none; } .hero-t { font-size: 23px; } .rc-t { font-size: 19px; } .tk-pick { font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* JRAで買うボタン */
.jra { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin-bottom: 14px; }
.jra .btn { flex-direction: column; gap: 0; padding: 10px 8px; line-height: 1.3; text-align: center; }
.jra .btn small { font-size: 10.5px; font-weight: 700; opacity: .85; }
