/* PCSO3 colorful light theme. The responsive structure lives in styles.css. */
:root {
  --blue: #1c56d9;
  --navy: #14284b;
  --gold: #f7cb70;
  --muted: #52627a;
  --line: #d7e2f0;
  --pale: #eef4ff;
  color-scheme: light;
  color: #14284b;
  background: #f7f9fd;
}
body { background: #f7f9fd; }
.site-splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #fff;
  pointer-events: none;
  animation: splash-exit 300ms cubic-bezier(.16, 1, .3, 1) 1100ms forwards;
}
.splash-content { text-align: center; }
.splash-logo { width: clamp(220px, 42vw, 310px); height: auto; margin-inline: auto; }
.splash-content p { margin-top: 18px; font-size: 18px; font-weight: 600; color: #14284b; }
.splash-balls { display: flex; justify-content: center; align-items: center; gap: 13px; height: 64px; margin-top: 21px; }
.splash-balls span {
  width: 30px;
  height: 30px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #1c56d9;
  background-image: radial-gradient(circle at 32% 25%, #6397ff, #1c56d9 65%, #123c9e);
  box-shadow: 0 5px 9px #14284b26;
  animation: splash-ball-draw 620ms cubic-bezier(.16, 1, .3, 1) 2;
}
.splash-balls span:nth-child(2) {
  background: #f2bd48;
  background-image: radial-gradient(circle at 32% 25%, #fff0bf, #f2bd48 65%, #bd7d13);
  animation-delay: 100ms;
}
.splash-balls span:nth-child(3) {
  background: #cf2546;
  background-image: radial-gradient(circle at 32% 25%, #f8758e, #cf2546 65%, #991a36);
  animation-delay: 200ms;
}
@keyframes splash-ball-draw {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-15px) rotate(12deg); }
}
@keyframes splash-exit {
  from { opacity: 1; visibility: visible; }
  to { opacity: 0; visibility: hidden; }
}
@media(prefers-reduced-motion:reduce) {
  .site-splash { display: none; }
}
:focus-visible { outline-color: #a56b00; }
.skip-link { background: var(--gold); color: var(--navy); }
.site-header { height: 98px; background: #fff; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: inherit; }
.brand { width: 164px; background: white; border-radius: 12px; padding: 3px 7px; box-shadow: none; }
.desktop-nav a:hover,.back-top:hover { color: var(--blue); }
.age-note strong { color: #825600; border-color: #c8ac70; }

/* A single cinematic studio banner, with the same text/art split. */
.hero {
  min-height: 446px;
  background: linear-gradient(135deg, #f0f5ff, #e3edff);
  border: 1px solid #ceddf3;
  grid-template-columns: .95fr 1.05fr;
  box-shadow: 0 12px 35px #14284b0a;
}
.hero-copy { padding: 48px 0 48px 48px; z-index: 2; }
h1 { font-weight: 800; text-shadow: none; }
h1 span { color: var(--blue); }
.hero-summary { color: #485d7d; line-height: 1.65; margin-top: 24px; margin-bottom: 28px; }
.button { min-height: 48px; border-radius: 10px; font-size: 14px; }
.button-primary { background: #efb742; background-image: linear-gradient(130deg, #ffe6a0, #efb742); color: #16213b; border-color: #ffe6a3; box-shadow: 0 4px 0 #ad7728, 0 7px 18px #14284b12; }
.button-primary .icon { filter: none; }
.button-primary:hover { background: #ffe7aa; box-shadow: 0 6px 0 #ad7728, 0 9px 22px #14284b18; }
.button-outline { background: white; border-color: #b9cce7; color: #14284b; min-height: 44px; font-size: 12px; box-shadow: inset 0 1px 0 #ffffff09; }
.button-outline .icon { filter: none; opacity: .8; }
.button-outline:hover { border-color: var(--blue); background: #eef4ff; }
.hero-art { background: #081632; }
.hero-art:before { display: none; }
.hero-art img { object-fit: contain; }
h2 { font-weight: 700; }
.heading-dot { color: #db283e; }
.count-label { color: #805500; border-color: #dfc384; padding: 8px 13px; border-radius: 8px; background: #fff6db; }

/* Each access card has the finish and hierarchy of an admission ticket. */
.access-link {
  min-height: 153px;
  border-color: #1a51c9;
  padding-bottom: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #225edc, #1849b3);
  color: #fff;
  box-shadow: inset 0 1px 0 #ffffff22, 0 6px 16px #14284b12;
}
.access-link::before { content: ''; position: absolute; left: 19px; right: 19px; bottom: 11px; height: 1px; background: linear-gradient(90deg, #729bce66, transparent); }
.access-link:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 12px 25px #14284b1c; }
.access-link.is-primary { background: linear-gradient(135deg, #fff0bf, #efbf5f); border-color: #ffe4a0; color: #14264a; box-shadow: 0 5px 0 #97702e, 0 8px 20px #14284b16; }
.access-link.is-primary::before { background: linear-gradient(90deg, #91642077, transparent); }
.access-topline { margin-bottom: 22px; }
.access-number { color: #eef4ff; }
.access-link .icon { width: 28px; height: 28px; padding: 5px; background: #ffffff15; border-radius: 8px; filter: brightness(0) invert(1); opacity: 1; }
.access-destination { color: #e3edff; margin-top: 7px; }
.is-primary .access-number,.is-primary .access-destination { color: #34476a; }
.is-primary .icon { filter: none; background: #936a1920; }
.access-link[aria-disabled=true] { color: #52627a; background: #e7eef8; border-color: #cbd8eb; }
.access-link[aria-disabled=true] .access-number,.access-link[aria-disabled=true] .access-destination { color: #52627a; }
.link-note { margin-top: 20px; }

/* A framed draw board, color-coded games, and dimensional lottery balls. */
.results-section {
  border: 1px solid #ceddf1;
  padding: 30px 28px 24px;
  background: #edf3fd;
  border-radius: 24px;
  box-shadow: 0 10px 30px #14284b08;
}
.draw-card { border-color: #bdcff0; background: linear-gradient(135deg, #fff, #f2f7ff); box-shadow: 0 5px 16px #14284b0a; }
.draw-card[data-game=ph3d] { background: linear-gradient(135deg, #fff, #fff3f4); border-color: #ebc8cf; }
.game-logo { width: 56px; height: 56px; padding: 4px; object-fit: contain; flex-shrink: 0; background: #fff; border-radius: 10px; }
.game-state { color: #52627a; margin-top: 5px; }
.lotto-ball {
  width: 52px; height: 52px; font-size: 24px; font-weight: 800; color: #163c7b;
  background: radial-gradient(circle at 33% 24%, #fff 5%, #f5f9ff 38%, #c6d7f2 83%, #9fb5dc);
  border-color: #e8f0ff;
  box-shadow: inset -3px -4px 5px #6881b62b, inset 2px 2px 3px #fff, 0 4px 7px #14284b1c;
}
.draw-card[data-game=ph3d] .lotto-ball { color: #8d263a; background: radial-gradient(circle at 33% 24%, #fff 5%, #fff7f3 38%, #ebcbc9 83%, #c3a09e); border-color: #ffe6dd; }
.meta-label { color: #53647e; margin-bottom: 6px; }
.meta-value { line-height: 1.5; }
.draw-countdown { background: #e5eeff; border-color: #d4dff1; color: #485d7d; }
.draw-card[data-game=ph3d] .draw-countdown { background: #fbe8ec; border-color: #eed3da; }
.countdown-value { font-size: 14px; color: #735000; letter-spacing: .06em; padding: 5px 9px; border: 1px solid #ddc27c; background: #fff3ce; border-radius: 6px; }
.results-footnote { margin-top: 18px; }
.results-footnote .icon { width: 14px; height: 14px; filter: none; opacity: .7; }
.responsible-banner { border: 1px solid #e5d7b4; background: #fff9ec; margin-top: 25px; }
.age-badge { border-color: #b89550; color: #805500; }
.footer-brand { width: 115px; border-radius: 8px; padding: 3px 5px; }
.back-top .icon { filter: none; }

@media(min-width:1440px) {
  .hero { min-height: 465px; }
  .hero-copy { padding-left: 48px; }
}
@media(max-width:1023px) {
  .site-header { height: 86px; }
  .hero { min-height: 380px; grid-template-columns: 1fr 1fr; }
  .hero-copy { padding: 35px 0 35px 28px; }
  .hero-summary { max-width: 260px; }
  .access-link { min-height: 142px; }
  .access-link .icon { width: 24px; height: 24px; padding: 4px; }
  .results-section { padding: 25px 20px 22px; }
  .draw-main { gap: 18px; grid-template-columns: 1fr; }
  .number-row { padding-left: 68px; gap: 8px; }
  .lotto-ball { width: 44px; height: 44px; font-size: 22px; }
  .results-footnote { flex-direction: column; gap: 8px; }
}
@media(max-width:767px) {
  .site-header { height: 80px; gap: 12px; }
  .brand { width: 139px; border-radius: 9px; }
  .hero { min-height: 0; }
  .hero-copy { padding: 30px 27px 25px; }
  .hero-summary { max-width: 300px; margin-top: 18px; margin-bottom: 22px; }
  .button-primary { min-height: 46px; }
  .hero-art { height: auto; aspect-ratio: 3 / 2; margin-top: 0; }
  .hero-art:before { display: none; }
  .hero-art img { object-fit: contain; }
  .count-label { padding: 6px 8px; }
  .link-grid { gap: 12px; }
  .access-link { min-height: 132px; padding-bottom: 22px; }
  .access-link.is-primary { min-height: 99px; padding-bottom: 22px; }
  .access-link.is-primary .icon { width: 34px; height: 34px; padding: 6px; }
  .access-topline { margin-bottom: 16px; }
  .link-note { margin-top: 17px; }
  .results-section { padding: 23px 16px 20px; border-radius: 20px; }
  .results-section .button-outline { width: 42px; min-width: 42px; min-height: 42px; }
  .results-grid { gap: 16px; }
  .draw-main { padding: 22px 18px; }
  .lotto-ball { width: 48px; height: 48px; font-size: 23px; }
  .number-row { padding-left: 68px; gap: 9px; }
  .draw-details { padding: 0 18px 20px; gap: 12px; }
  .draw-countdown { padding: 12px 18px; }
  .results-footnote { gap: 9px; }
  .responsible-banner { margin-top: 22px; }
  .footer-brand { width: 110px; }
  .mobile-nav { background: #fff; border-color: #cfdbed; box-shadow: 0 -4px 20px #14284b0d; }
  .mobile-nav a[aria-current] { background: #e7efff; color: #164cce; }
  .mobile-nav .icon { filter: none; opacity: .8; }
}
@media(max-width:359px) {
  .hero-copy { padding: 27px 22px; }
  .age-note strong { display: none; }
  .results-section { padding-inline: 12px; }
  .results-section h2 { font-size: 21px; }
  .draw-main { padding: 20px 14px; }
  .draw-details,.draw-countdown { padding-inline: 14px; }
  .number-row { padding-left: 0; justify-content: center; }
  .draw-details { gap: 10px; }
  .lotto-ball { width: 46px; height: 46px; }
  .countdown-value { font-size: 12px; padding: 5px 6px; }
}

/* Playful lottery tickets: large physical balls and a perforated timer stub. */
.results-section {
  position: relative;
  background: #fff9ed;
  border-color: #ead7ad;
  border-radius: 28px;
  padding-top: 32px;
}
.results-section .section-heading { position: relative; z-index: 1; margin-bottom: 26px; }
.results-section h2 { font-size: 32px; letter-spacing: -.045em; }
.results-section .heading-dot { color: #d72c46; }
.draw-confetti { position: absolute; top: 28px; right: 196px; display: flex; gap: 13px; pointer-events: none; transform: rotate(-12deg); }
.draw-confetti span { display: block; width: 7px; height: 15px; background: #edb738; border-radius: 2px; transform: rotate(25deg); }
.draw-confetti span:nth-child(2) { background: #285ed0; transform: translateY(13px) rotate(-24deg); width: 12px; height: 6px; }
.draw-confetti span:nth-child(3) { background: #dd3651; transform: translateY(-4px) rotate(-18deg); }
.draw-confetti span:nth-child(4) { background: #edb738; transform: translateY(17px) rotate(45deg); width: 9px; height: 9px; }
.draw-confetti span:nth-child(5) { background: #285ed0; transform: translateY(-1px) rotate(17deg); width: 6px; height: 12px; }
.results-grid { gap: 24px; }
.draw-card {
  --ticket-border: #a8c0e9;
  border: 2px solid var(--ticket-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 4px 5px 0 #14284b0c;
  overflow: visible;
  position: relative;
}
.draw-card[data-game=ph3d] { --ticket-border: #e6b5c0; border-color: var(--ticket-border); background: #fff; }
.draw-card::before,.draw-card::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  bottom: 55px;
  border: 2px solid var(--ticket-border);
  border-radius: 50%;
  background: #fff9ed;
  z-index: 2;
  pointer-events: none;
}
.draw-card::before { left: -12px; }
.draw-card::after { right: -12px; }
.draw-main {
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 24px 26px 27px;
  background: #edf4ff;
  border-radius: 20px 20px 0 0;
}
.draw-card[data-game=ph3d] .draw-main { background: #fff0f2; }
.game-heading { gap: 14px; }
.game-heading h3 { font-size: 21px; font-weight: 700; }
.game-logo { width: 62px; height: 62px; border-radius: 13px; }
.number-row { justify-content: center; padding-left: 0; gap: 16px; }
.lotto-ball {
  width: 78px;
  height: 78px;
  font-size: 34px;
  color: #fff;
  background: #1747b8;
  background-image: radial-gradient(circle at 32% 22%, #3b75e9, #1e55c8 48%, #123c9e);
  border: 5px solid #fff;
  box-shadow: inset 0 2px 2px #ffffff55, inset -3px -5px 0 #00000016, 0 6px 0 #14284b15;
  transform: rotate(-7deg);
}
.lotto-ball:nth-child(2) { transform: translateY(5px) rotate(6deg); }
.lotto-ball:nth-child(3) { transform: rotate(-4deg); }
.draw-card[data-game=ph3d] .lotto-ball {
  color: #fff;
  background: #b62240;
  background-image: radial-gradient(circle at 32% 22%, #df405d, #be2947 48%, #991a36);
  border-color: #fff;
}
.draw-details { padding: 21px 26px 22px; gap: 20px; background: #fff; }
.meta-label { font-size: 12px; color: #53647e; }
.meta-value { font-size: 14px; }
.draw-countdown,.draw-card[data-game=ph3d] .draw-countdown {
  min-height: 66px;
  padding: 13px 26px;
  border-top: 2px dashed var(--ticket-border);
  background: #fff;
  border-radius: 0 0 20px 20px;
  color: #485d7d;
}
.countdown-value {
  font-size: 17px;
  font-weight: 700;
  padding: 6px 11px;
  background: #ffe9aa;
  border: 1px solid #d6ac4c;
  color: #624200;
  border-radius: 8px;
  letter-spacing: .035em;
  transform: rotate(-2deg);
}
.results-footnote { margin-top: 23px; }
.is-loading .lotto-ball,.is-loading[data-game=ph3d] .lotto-ball { color: transparent; background: #e4eaf3; background-image: none; }
@media(max-width:1023px) {
  .results-section h2 { font-size: 29px; }
  .draw-confetti { right: 174px; gap: 10px; }
  .draw-main { padding: 22px 20px 25px; }
  .lotto-ball { width: 66px; height: 66px; font-size: 30px; }
  .number-row { gap: 12px; }
  .draw-details { padding: 20px; gap: 15px; }
  .draw-countdown,.draw-card[data-game=ph3d] .draw-countdown { padding-inline: 20px; }
}
@media(max-width:767px) {
  .results-section { padding: 25px 17px 22px; }
  .results-section h2 { font-size: 25px; }
  .draw-confetti { display: none; }
  .results-grid { gap: 22px; }
  .game-heading h3 { font-size: 20px; }
  .game-logo { width: 56px; height: 56px; }
  .draw-main { gap: 22px; padding: 20px 17px 25px; }
  .number-row { gap: 12px; }
  .lotto-ball { width: 62px; height: 62px; font-size: 28px; border-width: 4px; }
  .draw-details { padding: 19px 17px; gap: 14px; }
  .draw-countdown,.draw-card[data-game=ph3d] .draw-countdown { padding-inline: 17px; }
  .countdown-value { font-size: 16px; }
}
@media(max-width:359px) {
  .results-section { padding-inline: 13px; }
  .results-section h2 { font-size: 22px; }
  .draw-main { padding-inline: 14px; }
  .lotto-ball { width: 54px; height: 54px; font-size: 26px; }
  .number-row { gap: 10px; }
  .game-heading { gap: 10px; }
  .game-logo { width: 50px; height: 50px; }
  .draw-details { padding-inline: 14px; gap: 10px; }
  .draw-countdown,.draw-card[data-game=ph3d] .draw-countdown { padding-inline: 14px; }
  .countdown-value { font-size: 13px; padding: 6px 7px; }
}
