:root {
  color-scheme: light;
  --ink: #14213d;
  --muted: #68758f;
  --line: #dfe6ef;
  --paper: #ffffff;
  --soft: #f5f8fc;
  --blue: #00a6e6;
  --deep-blue: #063b86;
  --green: #008f72;
  --red: #d72d4d;
  --gold: #d99a00;
  --shadow: 0 20px 60px rgba(20, 33, 61, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: "Noto Sans Thai", system-ui, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: #063b86;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #00a6e6;
  color: #fff;
  font-size: 15px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  font-weight: 600;
}

.nav-links a {
  border-radius: 6px;
  padding: 7px 10px;
  transition: background 160ms ease, color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.mobile-scan {
  display: none;
}

.hero,
.checker-section,
.photo-section,
.agent-section,
.archive-section,
.news-section,
.lucky-section,
.seo-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  width: 100%;
  min-height: min(760px, calc(100vh - 75px));
  padding: 64px max(16px, calc((100% - 1180px) / 2));
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -2;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  z-index: -1;
  background: linear-gradient(90deg, rgba(243, 250, 255, 0.98) 0%, rgba(243, 250, 255, 0.9) 35%, rgba(243, 250, 255, 0.2) 62%, rgba(243, 250, 255, 0) 78%);
}

.hero-copy {
  max-width: 680px;
}

.hero .hero-title,
.section-heading h2,
.photo-copy h2,
.agent-section h2,
.lucky-section h2 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero .hero-title {
  max-width: 760px;
  font-size: clamp(42px, 5.2vw, 70px);
  color: #082f6c;
}

.hero-eyebrow {
  color: #007fba;
}

.lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: #3b4963;
  font-size: clamp(18px, 2vw, 22px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions,
.form-row,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions {
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 22px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: #007fba;
  color: #fff;
}

.button.secondary {
  background: #e8eef8;
  color: var(--ink);
}

.trust-row {
  margin-top: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.trust-row span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.hero-panel,
.checker-card,
.results-card,
.upload-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-panel {
  margin-top: 150px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 70px rgba(6, 59, 134, 0.2);
  backdrop-filter: blur(14px);
}

.status-pill {
  width: fit-content;
  border-radius: 999px;
  background: #e5f8f2;
  color: var(--green);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 800;
}

.panel-title {
  margin: 22px 0 14px;
  color: var(--muted);
  font-weight: 700;
}

.prize-card {
  border-radius: 8px;
  padding: 22px;
  background: #101a31;
  color: #fff;
}

.prize-card span,
.mini-grid span,
.archive-grid span,
.news-grid span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.main-prize strong {
  display: block;
  margin: 6px 0;
  font-size: 42px;
  line-height: 1;
}

.main-prize small {
  color: #b8c5dc;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.mini-grid div {
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.mini-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.checker-section,
.photo-section,
.agent-section,
.archive-section,
.news-section,
.lucky-section,
.seo-section {
  padding: 56px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.section-heading h2,
.photo-copy h2,
.agent-section h2,
.lucky-section h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.section-heading p:last-child,
.photo-copy p:last-child,
.agent-section p {
  color: var(--muted);
  font-size: 17px;
}

.checker-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 20px;
}

.checker-card,
.results-card {
  padding: 22px;
}

label {
  display: block;
  margin-bottom: 10px;
  font-weight: 800;
}

textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 180px;
  padding: 14px;
  resize: vertical;
}

select {
  min-height: 48px;
  flex: 1 1 210px;
  padding: 0 12px;
}

.form-row {
  margin-top: 14px;
}

.hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.result-item {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.result-item:last-child {
  border-bottom: 0;
}

.result-number {
  font-size: 22px;
  font-weight: 800;
}

.win {
  color: var(--green);
}

.miss {
  color: var(--muted);
}

.empty-state {
  margin: 0;
  color: var(--muted);
}

.photo-section,
.agent-section,
.lucky-section {
  position: relative;
  display: grid;
  min-height: 520px;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  overflow: hidden;
  border: 1px solid #c8daf3;
  border-radius: 8px;
  background: #eaf6ff;
  box-shadow: var(--shadow);
}

.upload-card {
  padding: 18px;
}

.upload-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.upload-card label {
  display: grid;
  min-height: 220px;
  place-items: center;
  border: 2px dashed #b9c7db;
  border-radius: 8px;
  background: #f9fbfe;
  cursor: pointer;
  text-align: center;
}

.upload-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 30px;
  line-height: 1;
}

.upload-card small {
  color: var(--muted);
}

.photo-preview {
  margin-top: 14px;
  color: var(--muted);
  font-weight: 700;
}

.agent-section {
  width: 100%;
  padding: 64px max(16px, calc((100% - 1180px) / 2));
  background: #ffffff;
}

.agent-steps {
  display: grid;
  gap: 12px;
}

.agent-steps div,
.archive-grid article,
.news-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.news-grid article {
  overflow: hidden;
  padding: 0;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.news-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(20, 33, 61, 0.13);
}

.news-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #dcecff;
  object-fit: cover;
  object-position: center 30%;
}

.news-content {
  padding: 18px;
}

.agent-steps span {
  color: var(--blue);
  font-weight: 800;
}

.agent-steps strong {
  display: block;
  margin-top: 8px;
}

.agent-steps small {
  color: var(--muted);
}

.archive-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.archive-grid h3,
.news-grid h3 {
  margin: 8px 0;
  line-height: 1.35;
}

.archive-grid p,
.news-grid p {
  margin: 0;
  color: var(--muted);
}

.feature-article {
  background: #fff8e6 !important;
  border-color: #efd28b !important;
}

.scratch-card {
  position: relative;
  width: min(100%, 440px);
  min-height: 270px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  background: #063b86;
  color: #fff;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 20px 48px rgba(6, 59, 134, 0.3);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.scratch-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 56px rgba(6, 59, 134, 0.38);
}

.lucky-model {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.lucky-interface {
  position: relative;
  z-index: 1;
  grid-column: 2;
  padding: 42px;
}

.lucky-copy {
  margin-bottom: 20px;
}

.lucky-copy h2 {
  color: #082f6c;
}

.lucky-copy p:last-child {
  margin: 12px 0 0;
  color: #435777;
  font-weight: 600;
}

.lucky-modes {
  display: grid;
  width: min(100%, 440px);
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 10px;
  border: 1px solid #b9cee9;
  border-radius: 8px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.78);
}

.lucky-modes button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #315176;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.lucky-modes button:hover,
.lucky-modes button:focus-visible {
  background: #ddecfa;
}

.lucky-modes button.is-active {
  background: #00a6e6;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 127, 186, 0.24);
}

.scratch-label,
.scratch-action,
.scratch-card strong {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scratch-card[data-digits="6"] strong {
  font-size: clamp(50px, 5.5vw, 72px);
}

.scratch-card[data-digits="2"] strong {
  font-size: clamp(86px, 9vw, 116px);
}

.scratch-label {
  gap: 9px;
  font-weight: 800;
}

.scratch-label svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: #ffd970;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.scratch-card strong {
  margin: 12px 0 8px;
  color: #ffd970;
  font-size: clamp(74px, 8vw, 104px);
  line-height: 1;
}

.scratch-action {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
}

.number-mist {
  position: absolute;
  inset: 0;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.number-mist b {
  position: absolute;
  font-size: 58px;
  line-height: 1;
}

.number-mist b:nth-child(1) { left: 5%; top: 8%; }
.number-mist b:nth-child(2) { right: 8%; top: 12%; }
.number-mist b:nth-child(3) { left: 14%; bottom: 8%; }
.number-mist b:nth-child(4) { right: 18%; bottom: 5%; }
.number-mist b:nth-child(5) { left: 45%; top: -5%; }
.number-mist b:nth-child(6) { right: -1%; top: 48%; }

.scratch-card.is-rolling strong {
  filter: blur(2px);
  transform: scale(0.94);
}

.seo-section {
  padding-top: 24px;
}

.seo-section h2 {
  margin: 0 0 14px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 9px 13px;
  color: #3c4a62;
  font-size: 14px;
  font-weight: 700;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

@media (max-width: 880px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .checker-layout,
  .photo-section,
  .agent-section,
  .lucky-section {
    grid-template-columns: 1fr;
  }

  .lucky-section {
    min-height: 780px;
    align-items: end;
  }

  .lucky-model {
    height: 440px;
    object-position: 25% center;
  }

  .lucky-interface {
    grid-column: 1;
    align-self: end;
    padding: 430px 22px 28px;
    background: linear-gradient(180deg, rgba(234, 246, 255, 0) 360px, #eaf6ff 445px);
  }

  .scratch-card {
    width: 100%;
  }

  .lucky-modes {
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding-top: 440px;
  }

  .hero-panel {
    margin-top: 0;
  }

  .hero-image {
    height: 430px;
    object-position: 70% center;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(243, 250, 255, 0) 0, rgba(243, 250, 255, 0.06) 330px, #f3faff 430px);
  }

  .archive-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 66px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
  }

  .brand {
    min-width: 0;
    white-space: nowrap;
  }

  .brand > span:last-child {
    max-width: 145px;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .nav-links {
    display: none;
  }

  .mobile-scan {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 8px;
    padding: 0 12px;
    background: #00a6e6;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
  }

  .mobile-scan svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
  }

  .hero,
  .checker-section,
  .photo-section,
  .archive-section,
  .news-section,
  .lucky-section,
  .seo-section {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    width: 100%;
    padding: 340px 12px 42px;
  }

  .hero-image {
    height: 335px;
    object-position: 68% center;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(243, 250, 255, 0) 0, rgba(243, 250, 255, 0.08) 245px, #f3faff 335px);
  }

  .hero .hero-title {
    font-size: 38px;
  }

  .mini-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .result-item {
    grid-template-columns: 1fr;
  }
}

/* ---- Laravel: หน้าผลรางวัล / ย้อนหลัง ---- */
.panel-link,
.text-link {
  color: #007fba;
  font-weight: 800;
}

.panel-link {
  display: inline-block;
  margin-top: 14px;
}

.draw-page h1,
.archive-section h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
}

.breadcrumb {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: #007fba;
}

.notice {
  margin: 0 0 14px;
  border-radius: 8px;
  padding: 10px 14px;
  background: #fff8e6;
  color: #7a5600;
  font-weight: 700;
}

.prize-board {
  display: grid;
  gap: 16px;
}

.prize-board-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 12px;
}

.prize-board-top .mini-grid {
  margin-top: 0;
}

.prize-board-top .mini-grid div {
  background: #fff;
}

.prize-tier {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.prize-tier h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.prize-tier h3 small {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.number-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.number-grid li {
  border-radius: 6px;
  padding: 6px 0;
  background: var(--soft);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: center;
}

.number-grid li.pending {
  color: var(--muted);
}

.result-summary {
  display: grid;
  gap: 2px;
  margin-bottom: 12px;
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--soft);
}

.result-summary.win {
  background: #e5f8f2;
}

.result-summary small {
  color: #7a5600;
}

.archive-grid article a {
  display: block;
}

.archive-grid article:hover {
  border-color: #9cc9ec;
}

.more-link {
  margin: 20px 0 0;
}

.draw-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 0;
}

.page-info {
  color: var(--muted);
  font-weight: 700;
}

.upload-card input:disabled + label {
  cursor: not-allowed;
  opacity: 0.7;
}

@media (max-width: 880px) {
  .prize-board-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .draw-pager .button {
    width: auto;
  }
}
/* Draw detail experience */
.draw-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #0066b3;
}

.draw-hero-slides,
.draw-hero-slide,
.draw-hero-overlay {
  position: absolute;
  inset: 0;
}

.draw-hero-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity .7s ease, transform 5.5s ease;
}

.draw-hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.draw-hero-overlay {
  background: linear-gradient(90deg, rgba(0, 49, 104, .96) 0%, rgba(0, 74, 145, .83) 34%, rgba(0, 78, 151, .2) 67%, rgba(0, 31, 70, .25) 100%);
}

.draw-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1244px;
  margin: 0 auto;
  padding: 68px 32px 76px;
  box-sizing: border-box;
}

.draw-hero-breadcrumb {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
}

.draw-hero-breadcrumb a { color: #fff; }

.draw-hero-kicker {
  margin: 0 0 10px;
  color: #ffdf67;
  font-weight: 800;
}

.draw-hero h1 {
  max-width: 590px;
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.08;
  letter-spacing: 0;
}

.draw-hero-prize {
  display: flex;
  flex-direction: column;
  width: fit-content;
  margin: 28px 0 30px;
  padding: 15px 22px;
  border-left: 5px solid #ffd33d;
  background: rgba(0, 37, 83, .72);
  backdrop-filter: blur(8px);
}

.draw-hero-prize span {
  color: #ddecff;
  font-size: 15px;
  font-weight: 700;
}

.draw-hero-prize strong {
  color: #fff;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: 3px;
}

.draw-hero-prize small {
  margin-top: 5px;
  color: #ffdf67;
  font-size: 18px;
  font-weight: 800;
}

.draw-hero-cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 6px;
  color: #003869;
  background: #ffdb41;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 24, 56, .28);
}

.draw-hero-controls {
  display: flex;
  gap: 9px;
  margin-top: 34px;
}

.draw-hero-controls button {
  width: 34px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
}

.draw-hero-controls button.is-active { background: #ffdb41; }

.draw-page .section-heading {
  position: relative;
  margin-bottom: 28px;
  padding-left: 18px;
}

.draw-page .section-heading::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 5px;
  border-radius: 3px;
  background: #0875cf;
}

.draw-page .section-heading h2 {
  margin-bottom: 4px;
  color: #073b69;
}

.draw-checker-feature {
  background: linear-gradient(180deg, #eaf6ff 0%, #fff 100%);
  border-top: 1px solid #d5ebfb;
  border-bottom: 1px solid #d5ebfb;
}

.draw-result-scene {
  position: relative;
  min-height: 400px;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background: #07518f;
  box-shadow: 0 18px 48px rgba(1, 50, 93, .18);
}

.draw-result-scene img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.draw-result-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 44, 94, .96) 0%, rgba(0, 68, 130, .82) 40%, rgba(0, 55, 105, .08) 75%);
}

.draw-result-scene.is-loser::after {
  background: linear-gradient(90deg, rgba(23, 61, 91, .94) 0%, rgba(36, 83, 117, .78) 43%, rgba(30, 63, 86, .08) 78%);
}

.draw-result-copy {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 400px;
  max-width: 560px;
  flex-direction: column;
  justify-content: center;
  padding: 46px;
}

.draw-result-copy small {
  color: #ffe174;
  font-weight: 800;
}

.draw-result-copy h2 {
  margin: 8px 0 10px;
  color: #fff;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: 0;
}

.draw-result-copy p {
  max-width: 480px;
  margin: 0;
  color: #eef8ff;
  font-size: 18px;
}

.draw-result-amount {
  display: block;
  margin-top: 18px;
  color: #ffdf55;
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 900;
  line-height: 1;
}

.draw-page .prize-board-top .main-prize strong {
  font-size: clamp(46px, 7vw, 82px);
  line-height: 1;
  color: #0068b7;
}

.draw-page .prize-tier {
  border-left: 5px solid #0b76c9;
  box-shadow: 0 9px 28px rgba(17, 73, 119, .09);
}

.draw-page .prize-tier:nth-child(2n) { border-left-color: #f2b705; }
.draw-page .prize-tier:nth-child(3n) { border-left-color: #19a66a; }

.draw-page .prize-tier h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #073b69;
}

.draw-page .prize-tier h3::before {
  content: "฿";
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #0875cf;
  font-size: 19px;
  font-weight: 900;
}

.draw-page .prize-tier h3 small {
  margin-left: auto;
  color: #0875cf;
  font-size: clamp(20px, 2.3vw, 32px);
  font-weight: 900;
}

@media (max-width: 760px) {
  .draw-hero {
    min-height: 710px;
    align-items: flex-end;
  }

  .draw-hero-slide { object-position: 68% center; }

  .draw-hero-overlay {
    background: linear-gradient(0deg, rgba(0, 43, 90, .98) 0%, rgba(0, 64, 125, .88) 44%, rgba(0, 56, 112, .08) 82%);
  }

  .draw-hero-content {
    width: 100%;
    max-width: 680px;
    padding: 300px 18px 32px;
  }

  .draw-hero-breadcrumb { display: none; }
  .draw-hero h1 { font-size: 38px; }

  .draw-hero-prize {
    margin: 18px 0 20px;
    padding: 12px 16px;
  }

  .draw-hero-prize strong { font-size: 40px; }
  .draw-hero-controls { margin-top: 24px; }

  .draw-result-scene {
    display: grid;
    min-height: 0;
    background: #07518f;
  }

  .draw-result-scene img {
    position: relative;
    height: 280px;
    object-position: 66% center;
  }

  .draw-result-scene::after { display: none; }

  .draw-result-copy {
    min-height: 0;
    max-width: none;
    padding: 28px 22px 32px;
  }

  .draw-result-copy h2 { font-size: 31px; }
  .draw-result-amount { font-size: 42px; }

  .draw-page .prize-tier h3 {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .draw-page .prize-tier h3 small {
    width: calc(100% - 50px);
    margin-left: 50px;
  }
}

/* Keep the photo scanner compact and independent from the taller AI sections. */
.photo-section {
  min-height: 0;
  grid-template-columns: minmax(0, .95fr) minmax(390px, 1.05fr);
  gap: 48px;
  padding: 44px;
  overflow: visible;
  background: linear-gradient(135deg, #f3f9ff 0%, #e5f4ff 100%);
}

.photo-copy {
  max-width: 540px;
}

.photo-copy .eyebrow {
  margin-bottom: 10px;
  color: #e4394f;
  font-weight: 900;
}

.photo-copy h2 {
  color: #072d59;
  font-size: clamp(32px, 3.5vw, 46px);
}

.photo-copy p:last-child {
  margin: 18px 0 0;
  line-height: 1.75;
}

.photo-section .upload-card {
  padding: 18px;
  border-color: #b9d9f2;
  box-shadow: 0 14px 36px rgba(16, 78, 126, .11);
}

.photo-section .upload-card label {
  min-height: 230px;
  padding: 24px;
  align-content: center;
  gap: 14px;
  border-color: #9fc6e4;
  background: #fbfdff;
}

.photo-section .upload-card label strong {
  color: #133e69;
  font-size: 18px;
}

.photo-section .upload-icon {
  width: 58px;
  height: 58px;
  background: #079bd5;
  box-shadow: 0 8px 20px rgba(0, 142, 198, .22);
}

.photo-section .photo-preview {
  margin: 14px 2px 2px;
  font-size: 14px;
}

@media (max-width: 880px) {
  .photo-section {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 34px;
  }

  .photo-copy { max-width: 680px; }
}

@media (max-width: 560px) {
  .photo-section {
    gap: 22px;
    padding: 26px 18px;
  }

  .photo-copy h2 { font-size: 31px; }

  .photo-copy p:last-child {
    margin-top: 14px;
    font-size: 16px;
  }

  .photo-section .upload-card { padding: 12px; }

  .photo-section .upload-card label {
    min-height: 190px;
    padding: 20px 14px;
  }
}

/* ---- บอร์ดผลรางวัลบนสุด (หน้าแรก / หน้ารอผลงวดถัดไป) ---- */
.result-board {
  padding: 28px max(12px, calc((100% - 760px) / 2)) 32px;
  background: radial-gradient(circle at 50% 0, #17305e 0, #0b1633 55%, #070d20 100%);
  color: #fff;
  text-align: center;
}

.result-board-title {
  margin: 0;
  font-size: clamp(44px, 9vw, 72px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
}

.result-board-date {
  margin: 6px 0 0;
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 800;
  line-height: 1.35;
}

.result-board-status {
  width: fit-content;
  margin: 14px auto 0;
  border-radius: 999px;
  padding: 6px 14px;
  background: rgba(255, 217, 112, 0.16);
  color: #ffd970;
  font-size: 14px;
  font-weight: 700;
}

.result-board-status.is-live {
  background: #d72d4d;
  color: #fff;
}

/* แถวบน รางวัลที่ 1 กว้างกว่าเลขท้าย 2 ตัว (6:4) แถวล่างเลข 3 ตัวกว้างเท่ากัน (5:5) */
.result-board-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.result-board-grid .result-card:nth-child(1) { grid-column: span 6; }
.result-board-grid .result-card:nth-child(2) { grid-column: span 4; }
.result-board-grid .result-card:nth-child(n + 3) { grid-column: span 5; }

.result-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.result-card h2 {
  margin: 0;
  padding: 10px 8px;
  color: #fff;
  font-size: clamp(18px, 4.4vw, 24px);
  font-weight: 800;
  line-height: 1.3;
}

.result-card.is-red h2 {
  background: linear-gradient(180deg, #e73a2f, #b8201c);
}

.result-card.is-blue h2 {
  background: linear-gradient(180deg, #2658a8, #163b7c);
}

.result-card-numbers {
  display: flex;
  justify-content: center;
  padding: 14px 6px 4px;
}

.result-card-numbers strong {
  flex: 1;
  font-size: clamp(30px, 8.5vw, 46px);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.result-card-numbers strong + strong {
  border-left: 1px solid #d6dbe4;
}

.result-card.is-red .result-card-numbers strong {
  color: #cf2a22;
}

.result-card.is-first .result-card-numbers strong {
  font-size: clamp(34px, 10vw, 58px);
}

.result-card-numbers strong.is-placeholder {
  color: #b9c1cf !important;
  letter-spacing: 2px;
}

.result-card small {
  display: block;
  padding: 2px 6px 12px;
  color: var(--muted);
  font-size: 14px;
}

.result-board-all {
  width: 100%;
  margin-top: 18px;
  border: 1px solid #c9ced8;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #e3e7ee);
  color: var(--ink);
  font-size: 20px;
}

.quick-check {
  margin-top: 16px;
  text-align: left;
}

.quick-check label {
  margin-bottom: 6px;
  color: #cfd8ea;
  font-size: 14px;
  font-weight: 700;
}

.quick-check-row {
  display: flex;
  gap: 8px;
}

.quick-check-row input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  color: var(--ink);
  font: inherit;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
}

.quick-check-row input::placeholder {
  color: #9aa6ba;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
}

.quick-check-row .button {
  width: auto;
  min-height: 52px;
  border-radius: 12px;
  padding: 0 26px;
  background: #00a6e6;
  font-size: 18px;
}

.quick-results:not(:empty) {
  margin-top: 12px;
  border-radius: 12px;
  padding: 4px 16px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.quick-results .result-summary {
  margin: 12px 0 4px;
}

.result-board-source {
  margin: 16px 0 0;
  color: #b8c5dc;
  font-size: 14px;
}

@media (max-width: 380px) {
  .result-board-grid {
    gap: 10px;
  }

  .result-card-numbers strong {
    font-size: 28px;
  }

  .result-card.is-first .result-card-numbers strong {
    font-size: 32px;
  }
}
