/* TamBet Tombala */
:root { --ember:#f47721; --mark:#ffd64a; --cream:#151312; --ink:#fff7ef; --muted:#c9b9ab; --paper:#fff7ee; --rust:#ffa46b; --yellow:var(--mark); --gold:#f47721; --sans:'Segoe UI',Arial,sans-serif; --display:'Segoe UI',Arial,sans-serif; --line:#dfc6b426; }
body { font-size:16px; background:#151312; background-image:none; }
body::before { opacity:.018; z-index:0; }
.scene-background { background:#151312; overflow:hidden; }
.scene-background::after { background:linear-gradient(180deg,#15131210,#15131280); }
.ambient-orb { position:absolute; width:800px; height:800px; border-radius:50%; pointer-events:none; }
.orb-ember { top:-380px; right:-160px; background:radial-gradient(circle,#ec742832,transparent 67%); }
.orb-warm { top:330px; left:-500px; background:radial-gradient(circle,#d46a331c,transparent 65%); }
.ambient-grid { position:absolute; inset:0; opacity:.13; background-image:linear-gradient(#ac796035 1px,transparent 1px),linear-gradient(90deg,#ac796035 1px,transparent 1px); background-size:90px 90px; mask-image:linear-gradient(#000,transparent 75%); }
.app-shell { position:relative; z-index:1; width:100%; max-width:1360px; min-height:100svh; display:flex; flex-direction:column; }
main { flex:1; min-width:0; }
.site-header { height:90px; position:relative; border-color:#9d7b6430; }
.site-header .brand-logo { width:185px; aspect-ratio:3/1; }
.site-header .brand-logo img { position:static; height:100%; object-fit:contain; transform:none; }
.brand-game { color:#c2af9e; border-color:#87705d55; font:650 12px var(--sans); letter-spacing:3px; padding-left:20px; margin-right:auto; }
.header-actions { gap:14px; }
.help-button { font-size:14px; color:#f1dfd0; }
.header-actions .icon-button { border:1px solid #b99b8550; color:#f1dfd0; background:#2b231e66; }
.header-actions .icon-button:hover { background:#ec742833; }
.intro-row { padding:37px 0 28px; min-height:266px; gap:28px; }
.tam-eyebrow { display:block; color:#f2ab7c; font-size:12px; letter-spacing:3px; font-weight:700; margin-bottom:16px; }
h1 { font-family:var(--display); font-weight:780; font-size:clamp(44px,5.1vw,76px); letter-spacing:-2.5px; line-height:1.02; margin:0 0 18px; }
h1 em { font-style:normal; font-weight:750; color:#ffa46b; }
.intro-copy { max-width:380px; font-size:16px; line-height:1.6; color:#c9b9ab; }
.tam-hero-art { width:400px; height:220px; flex-shrink:0; position:relative; margin-right:46px; perspective:800px; }
.hero-orbit { position:absolute; inset:30px -10px 0; border:1px solid #c3916a5e; border-radius:50%; transform:rotate(-14deg); box-shadow:0 0 35px #ec74280d; }
.hero-orbit::after { content:''; position:absolute; inset:23px -23px; border:1px dashed #d46a3340; border-radius:50%; transform:rotate(-19deg); }
.hero-ticket { position:absolute; width:140px; height:178px; left:120px; top:20px; padding:26px 18px; border-radius:16px; border:1px solid #ffc5a180; background:linear-gradient(140deg,#7d3d20,#221810 75%); box-shadow:inset 0 0 0 6px #211c18,inset 0 0 0 7px #ab6e5077,0 24px 35px #0008; transform:rotate(-16deg); }
.hero-ticket img { width:102px; height:102px; object-fit:contain; border-radius:19px; }
.hero-ball { position:absolute; width:110px; height:110px; border-radius:50%; display:grid; place-items:center; background:radial-gradient(circle at 28% 22%,#fffdf7,#efdccb 46%,#9e8370 72%,#554134); box-shadow:inset -7px -12px 15px #2310038c,inset 2px 3px 6px #ffffff8c,0 22px 22px #0006; animation:club-float 5s ease-in-out infinite; }
.hero-ball::before { content:''; position:absolute; width:48%; height:21%; top:10%; left:13%; border-radius:50%; background:linear-gradient(#ffffffa6,#ffffff08); transform:rotate(-28deg); }
.hero-ball span { background:radial-gradient(circle at 25% 15%,white,#f4e9db); width:54%; height:54%; border-radius:50%; display:grid; place-items:center; color:#31231c; font-size:34px; font-weight:800; box-shadow:inset 0 2px 4px #0003; transform:rotate(-12deg); }
.ball-ivory { left:28px; top:86px; z-index:3; }
.ball-copper { right:28px; top:10px; width:102px; height:102px; background:radial-gradient(circle at 28% 22%,#ffbd8b,#d46a33 46%,#a14424 72%,#612915); animation-delay:-1.7s; }
.ball-ember { right:61px; bottom:-3px; width:96px; height:96px; background:radial-gradient(circle at 28% 22%,#ffdbaa,#f47721 46%,#9c4320 72%,#4e2416); animation-delay:-3s; z-index:4; }
.ball-ember span { font-size:28px; }
@keyframes club-float { 50% { transform:translateY(-7px) rotate(4deg); } }
.round-rules { background:#2c241e; border:1px solid #92776440; border-radius:10px; font-size:14px; line-height:1.6; margin:0 0 18px; padding:12px 16px; color:#e2cdba; }
.tam-theme .selection-table { padding:27px 34px 22px; border:1px solid #bc795566; border-radius:25px; background:radial-gradient(ellipse at 50% -15%,#723b2477,transparent 65%),linear-gradient(115deg,#291f19,#211a16 75%),repeating-linear-gradient(40deg,transparent 0 2px,#392a22 2px 4px); box-shadow:inset 0 0 0 5px #15131270,inset 0 0 0 6px #a97b5c4d,0 24px 70px #0004; }
.selection-table::after { border-color:#bc987f1f; inset:15px; border-radius:16px; }
.table-corner { display:none; }
.selection-table .table-topline { justify-content:space-between; padding:0 4px; }
.table-title { color:#fbf3eb; font-weight:600; font-size:16px; }
.tam-theme .table-label { color:#c5ae99; font-size:12px; letter-spacing:1px; }
.card-deck { height:278px; }
.tam-theme .card-back { border:2px solid #e39262; border-radius:12px; background:repeating-linear-gradient(45deg,transparent 0 10px,#eab99b12 10px 11px),linear-gradient(145deg,#663b2a,#2c1f18); box-shadow:inset 0 0 0 3px #2c1c12,inset 0 0 0 4px #cd9c8077,0 1px 0 #efc3a5; }
.tam-theme .pick-card:nth-child(3n+1) .card-back { border-color:#ed965a; background:repeating-linear-gradient(-45deg,transparent 0 10px,#fac7a514 10px 11px),linear-gradient(145deg,#562a1c,#2a1b14); box-shadow:inset 0 0 0 3px #392119,inset 0 0 0 4px #bf7e5f66,0 1px 0 #f1b28d; }
.tam-theme .pick-card:nth-child(3n+2) .card-back { background:repeating-linear-gradient(45deg,transparent 0 10px,#ffe0c614 10px 11px),linear-gradient(145deg,#723e28,#35231b); }
.card-back::before { inset:10px; border-color:#ffe2cd4d; border-radius:7px; }
.card-back::after,.card-back .back-corner { color:#ffbe95; }
.tam-theme .card-medallion { width:85px; height:122px; border:0; outline:0; background:none; box-shadow:none; gap:8px; }
.card-medallion::before,.card-medallion::after,.card-ribbon { display:none; }
.card-medallion strong { display:block; width:56px; height:56px; }
.card-medallion strong img { width:100%; height:100%; border-radius:13px; }
.card-medallion small { font:700 12px var(--sans); letter-spacing:1.2px; color:#fff; }
.card-medallion small:last-child { font-size:9px; letter-spacing:2px; color:#e5c2aa; }
.selection-table .table-bottomline { justify-content:center; }
.table-shuffle { font-size:14px; padding:10px 20px; background:#21181380; border:1px solid #a7867044; border-radius:9px; color:#ebdacb; }
.tam-theme .primary-button { border:1px solid #ffa46b; border-radius:10px; background:linear-gradient(130deg,#ec7428,#d96320); color:#20130d; box-shadow:0 3px 0 #a43a0e,inset 0 1px #ffc28555; font-size:16px; min-height:48px; }
.tam-theme .primary-button:hover:not(:disabled) { background:linear-gradient(130deg,#ff994f,#ec7428); }
.tam-theme .primary-button:disabled { box-shadow:none; opacity:.55; }
.quiet-button { font-size:14px; }
.tam-theme .member-form { margin-top:4px; width:min(100%,410px); }
.member-form input { border:1px solid #936e55; background:#17120f; border-radius:10px; min-height:48px; }
.member-form label { color:#f1e2d4; }.member-form .reveal-actions { gap:16px; }
.member-form .reveal-actions .primary-button { font-size:14px; }
.game-heading { min-height:65px; padding:16px 0; justify-content:flex-end; }
.game-layout { grid-template-columns:300px minmax(0,1fr); gap:28px; }
.tam-theme .draw-panel { background:radial-gradient(ellipse at top,#72371d66,transparent 70%),#201b18; border-color:#a2775660; border-radius:20px; box-shadow:0 15px 45px #0003; }
.player-panel::before,.number-board-section::before { background:#201b18cc; border-color:#a2775640; }
.ball-orbit { width:190px; height:190px; display:grid; place-items:center; margin:18px auto; }
.number-ball { position:relative; width:150px; height:150px; background:radial-gradient(circle at 26% 19%,#ffc391,#ec7428 44%,#b44b1d 72%,#572619); box-shadow:inset -10px -14px 22px #15131270,inset 3px 4px 8px #ffd7b977,0 15px 25px #0007; }
.number-ball::before { content:''; width:70%; height:70%; top:15%; left:15%; border-radius:50%; border:2px solid #fbecde; background:radial-gradient(circle at 30% 20%,#fff,#fff2e6 65%,#cab5a0); }
.number-ball::after { display:none; }
.tam-theme .number-ball #current-number { position:relative; z-index:2; color:#351e18; font-family:'Cinzel Numbers','Segoe UI',sans-serif; font-size:64px; font-weight:650; text-shadow:none; }
.draw-eyebrow { font-size:12px; }.draw-message { font-size:14px; }
.draw-topline .table-label,.draw-topline > span:last-child { font-size:12px; }
.auto-toggle { font-size:14px; }.recent-draws > span { font-size:11px; }
.ticket-wrap::before { background:#765340; border-color:#ffab77; }
.tombala-ticket,.reveal-area .tombala-ticket { border:1px solid #c8916b; border-radius:16px; background:#f6ebde; color:#34271e; }
.tam-theme .ticket-header { background:linear-gradient(110deg,#4b3021,#251d19); min-height:64px; color:white; border-color:#d3956f66; padding:14px 20px; display:flex; justify-content:space-between; align-items:center; }
.ticket-brand { font:750 16px var(--sans); letter-spacing:1px; }.ticket-brand span { color:#e7c6b0; font-size:11px; }
.ticket-brand-symbol { font:36px Georgia,serif; color:#ffad7c; line-height:1; }
.ticket-cell { font-family:'Cinzel Numbers','Segoe UI',sans-serif; background:#fff; color:#332116; border-color:#cbb4a2; }
.ticket-cell.empty { background:#ecdfd1; background-image:repeating-linear-gradient(45deg,transparent 0 5px,#8e614612 5px 6px); }
.ticket-cell.empty::after { content:'·'; color:#a5755875; }
.ticket-cell.marked::before { background:#ffd64ae8; }
.ticket-footer { color:#705e50; }.ticket-footer span { font-size:10px; letter-spacing:.5px; }
.achievement strong { font-size:14px; }.achievement > div > span { font-size:12px; }
.achievement.complete .achievement-icon { background:#d46a33; border-color:#ed996b; color:#fff; }
.achievement.complete strong { color:#ffbf95; }
.board-heading h2 { font-size:21px; color:#fff3ea; }.board-legend { color:#ccbaaa; }
.board-number { background:#221c18; border-color:#a17c634d; color:#cdb9a7; }
.board-number.drawn,.board-legend .drawn-legend { background:#f5a16c; border-color:#f69a5d; color:#221812; }
.board-number.marked,.board-legend .marked-legend { background:var(--mark); border-color:#ffe35d; color:#151312; }
.board-number.latest { outline-color:#d46a33; box-shadow:0 0 0 2px #d46a33; }
.modal { border:1px solid #b5856570; background:#211c18; border-radius:22px; max-height:calc(100dvh - 30px); overflow-y:auto; }
.modal h2 { font:750 32px/1.15 var(--display); letter-spacing:-1px; color:#fff; }
.modal .rules p,.modal > p,.small-modal > p { font-size:15px; color:#d8c4b1; }
.modal .rules strong { color:#fff2e6; font-size:17px; }.rules li > b { color:#ffab77; }
.tam-theme .win-modal { background:radial-gradient(ellipse at 50% 0,#85422466,transparent 65%),#211c18; border-color:#d46a3360; }
.reward-breakdown { color:#f2e5d7; }
.reward-availability { font-size:14px; }
.site-footer { font-size:12px; border-color:#a27d614d; padding:20px 0; color:#bca797; }.site-footer strong { color:#fff5ed; font-size:13px; letter-spacing:2px; }
.footer-caption { margin-left:6px; letter-spacing:1px; color:#ccb29d; }
.holiday-toggle { font-size:12px; border-color:#a27d614d; background:#211c18; }.holiday-toggle[aria-pressed="true"] { color:#ffb685; background:#3e2b20; }
@media(max-width:1100px) { .tam-hero-art { margin-right:0; transform:scale(.9); transform-origin:right center; width:350px; } .game-layout { grid-template-columns:270px minmax(0,1fr); gap:20px; } }
@media(max-width:760px) {
  .app-shell { padding-inline:20px; }.site-header { height:90px; gap:12px; }.site-header .brand-logo { width:148px; }.brand-game { display:none; }.header-actions { margin-left:auto; gap:8px; }.header-divider { display:none; }.help-button { width:44px; justify-content:center; padding:0; border:1px solid #b99b8550; border-radius:50%; background:#2b231e66; }.help-button span { display:none; }
  .intro-row { position:relative; padding:28px 0 25px; min-height:0; display:block; }.intro-row > div:first-child { position:relative; z-index:2; }.tam-eyebrow { font-size:10px; letter-spacing:2px; margin-bottom:14px; }h1,.intro-row h1 { font-size:40px; margin:0 0 13px; line-height:1.08; letter-spacing:-1.8px; }.intro-copy { max-width:240px; font-size:14px; line-height:1.65; }
  .tam-hero-art { position:absolute; right:-6px; top:24px; width:140px; height:145px; margin:0; transform:none; opacity:.55; pointer-events:none; }.hero-ticket,.hero-orbit,.ball-ember { display:none; }.hero-ball { width:70px; height:70px; }.hero-ball span { font-size:22px; }.ball-ivory { left:0; top:72px; }.ball-copper { right:0; top:3px; }
  .round-rules { font-size:13px; padding:12px 14px; margin-bottom:16px; }.tam-theme .selection-table { padding:20px 18px 18px; border-radius:20px; }.table-topline { flex-wrap:wrap; gap:9px; }.table-title { font-size:15px; }.tam-theme .table-label { font-size:10px; letter-spacing:.8px; }.table-shuffle { font-size:13px; min-height:44px; }.table-bottomline { margin-top:10px; }
  .tam-theme .card-deck { height:auto; }.tam-theme .card-medallion { width:auto; height:auto; gap:7px; }.card-medallion strong { width:45px; height:45px; }.card-medallion small { font-size:10px; }.card-medallion small:last-child { font-size:8px; letter-spacing:1.4px; }
  .reveal-area { padding:20px 0 0; gap:18px; }.reveal-area .ticket-grid { margin-inline:10px; }.reveal-area .ticket-header { padding:11px; }.reveal-area .ticket-cell { font-size:22px; }.member-form .reveal-actions { flex-direction:column-reverse; align-items:stretch; gap:7px; }.member-form .reveal-actions > button { width:100%; }.member-form .reveal-actions .primary-button { font-size:15px; }
  .game-layout { display:grid; grid-template-columns:minmax(0,1fr); gap:22px; }.game-heading { min-height:54px; padding:8px 0; }.tam-theme .draw-panel { padding:19px 17px; border-radius:17px; }.ball-orbit { width:112px; height:122px; margin:0; }.number-ball { width:103px; height:103px; }.tam-theme .number-ball #current-number { font-size:47px; }.draw-message { font-size:13px; line-height:1.4; }.draw-topline .table-label,.draw-topline > span:last-child { font-size:10px; }.auto-toggle { font-size:12px; }.recent-draws > span { font-size:10px; }.draw-eyebrow { font-size:10px; }.tam-theme .draw-button { min-height:44px; font-size:15px; }
  .tam-theme .ticket-header { padding:12px; min-height:59px; gap:10px; }.ticket-brand { font-size:14px; }.ticket-brand span { font-size:10px; }.ticket-brand-symbol { font-size:29px; }.ticket-footer span { font-size:9px; letter-spacing:0; }.achievement strong { font-size:12px; }.achievement > div > span { font-size:11px; }.board-heading h2 { font-size:19px; }.board-legend { font-size:11px; }.number-board { gap:7px; }.board-number { font-size:15px; }
  .site-footer { gap:12px; }.footer-caption { display:none; }.site-footer strong { font-size:12px; }.modal h2 { font-size:29px; }.modal .rules p { font-size:14px; }.modal { max-height:calc(100dvh - 24px); }
}
@media(max-width:374px) {
  .app-shell { padding-inline:15px; }.site-header .brand-logo { width:132px; }.site-header { height:82px; }.header-actions { gap:5px; }.header-actions .icon-button,.help-button { width:40px; min-width:40px; height:40px; min-height:40px; }
  h1,.intro-row h1 { font-size:36px; }.tam-hero-art { opacity:.25; right:0; }.tam-theme .selection-table { padding:18px 12px 15px; }.tam-theme .card-medallion { gap:5px; }.card-medallion strong { width:38px; height:38px; }.card-medallion small { font-size:9px; }.card-medallion small:last-child { font-size:7px; }
  .tam-theme .draw-panel { padding:15px 12px; grid-template-columns:98px minmax(0,1fr); gap:12px; }.ball-orbit { width:98px; height:108px; }.number-ball { width:91px; height:91px; }.tam-theme .number-ball #current-number { font-size:42px; }.auto-toggle { font-size:11px; }.recent-number { width:25px; height:25px; }.board-number { font-size:14px; }.achievement strong { font-size:11px; }.reveal-area .ticket-cell { font-size:19px; }.tam-theme .ticket-header { padding-inline:10px; }.ticket-brand { font-size:12px; }
}
@media(prefers-reduced-motion:reduce) { .hero-ball { animation:none; } }
#selection-screen { padding-bottom: 26px; }
.status-dot { background: var(--ember); box-shadow: 0 0 0 4px #f4772129; }
#draw-speed,#draw-speed option { background:#291f19; border-color:#c7926e55; color:var(--ink); }
.marker-icon { background:#f4772126; color:#ffba8d; }
.marker-hint strong,.marked-count strong { color:#ffbd93; }
.modal::backdrop { background:#15100edb; }
.holiday-snow { opacity:.45; filter:grayscale(1); }
.resume-banner { background:#2c231d; border-color:#92563770; color:#f6e5d7; }
.resume-banner button { color:#ffb686; min-height:44px; }
.auto-toggle[aria-pressed="true"] .switch-track { background: var(--ember); }
.auto-toggle[aria-pressed="true"] .switch-track span { background: #24190f; }
.site-header .header-divider { border-color: var(--line); }
.tam-theme .member-form { display:grid; gap:9px; }
.member-form input { color:var(--ink); min-width:0; padding:10px 12px; font:inherit; }
.member-form .reveal-actions .quiet-button { color: var(--ink); min-height:44px; }
.member-error { color:#ffb19e; }
:where(button,a,select,input):focus-visible { outline-color:#ffab77; }
.tam-theme .number-ball #current-number { color: #351e18; }
.recent-number:first-child { background: #ffb380; border-color:#ffb380; color:#251913; }
.ticket-brand-symbol { display:grid; place-items:center; flex:none; }
.ticket-brand-symbol img { width:38px; height:38px; border-radius:7px; }
.ticket-cell.available:not(.marked) { color:#9f4b20; }
.tam-theme .ticket-header.has-celebration { display:grid; grid-template-columns:minmax(max-content,1fr) minmax(0,2fr) auto; gap:12px; }
.ticket-celebration { display:grid; justify-items:center; min-width:0; text-align:center; border:1px solid #f4772170; border-radius:8px; padding:7px 10px; background:#201612; color:#ffc6a0; }
.ticket-celebration.is-celebrating { animation:prize-arrive .5s ease-out both; }
.celebration-spark, .celebration-reward:empty { display:none; }
.celebration-copy { display:grid; gap:3px; min-width:0; }
.celebration-title { font-size:12px; }
.celebration-reward { font-size:14px; overflow-wrap:anywhere; }
@keyframes prize-arrive { from { opacity:.5; transform:translateY(4px) scale(.96); } to { opacity:1; transform:none; } }
.achievement > div { min-width:0; }
.achievement > div > span { line-height:1.35; overflow-wrap:anywhere; }
.achievement.selected .stage-prize { color:#ffc29a; font-weight:650; }
.reward-award { display:grid; gap:9px; justify-items:center; margin:18px 0; padding:16px 12px; border:1px solid #f4772166; border-radius:10px; background:#342118; color:#ffbc8f; overflow-wrap:anywhere; }
.reward-award > span { color:#e8cbb7; font-size:13px; }
.reward-award > strong { font-size:clamp(21px,5vw,34px); line-height:1.15; }
.reward-selected { color:#ffbd92; }
.reward-breakdown, .reward-breakdown li { border-color:#a67c6444; }
.win-modal .reward-availability { color:#eacfb9; }
.show-result { color:#ffb788; }
.service-notice { display:flex; align-items:center; flex-wrap:wrap; gap:10px 14px; padding:12px 16px; margin-bottom:16px; border:1px solid #d0845766; border-radius:10px; background:#332219; color:#f5d2b8; line-height:1.5; }
.service-notice button { min-height:44px; padding:6px 13px; border:1px solid #d0845780; border-radius:8px; background:#2a2019; color:#ffe4cf; }
@media(max-width:760px) {
  .intro-copy { max-width:225px; }
  .header-actions .icon-button,.help-button { min-width:44px; min-height:44px; }
  .tam-theme .ticket-header.has-celebration { grid-template-columns:1fr auto; gap:10px; }
  .ticket-celebration { grid-column:1 / -1; grid-row:2; }
  .ticket-brand-symbol { grid-column:2; grid-row:1; }
  .ticket-brand-symbol img { width:30px; height:30px; }
  .achievement-icon { width:26px; height:26px; }
}
@media(max-width:374px) {
  .site-header .brand-logo { width:135px; }
  .intro-copy { max-width:204px; }
  .achievement { gap:5px; align-items:flex-start; }
  .achievement-icon { width:20px; height:20px; }
  .achievement > div > span { font-size:10px; }
}
@media(prefers-reduced-motion:reduce) {
  .ticket-celebration.is-celebrating { animation:none; }
}
