@font-face {
  font-family: Pretendard;
  src: url("assets/PretendardVariable.woff2") format("woff2");
  font-weight: 45 920;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --body: #060d1b;
  --surface: #101d35;
  --deep: #09152b;
  --line: #273d65;
  --bright-line: #426b9f;
  --text: #edf4ff;
  --muted: #b3c5df;
  --aqua: #98ecff;
  --sky: #58bdff;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 132px; }
body { margin: 0; background: radial-gradient(ellipse at 50% 12%, #162752 0%, var(--body) 58%) fixed; color: var(--text); font: 15px/1.45 Pretendard, "Noto Sans KR", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #8deaff; outline-offset: 3px; }
img { display: block; width: 100%; height: auto; }
em { font-style: normal; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip-link { position: fixed; top: 9px; left: 9px; z-index: 30; transform: translateY(-150%); background: white; color: #0d1930; padding: 7px 13px; }
.skip-link:focus { transform: none; }

.header { position: sticky; top: 0; z-index: 8; padding-inline: clamp(16px, 1.6vw, 32px); background: #081220f5; border-bottom: 1px solid #4877b8; box-shadow: 0 10px 24px #030916ac; }
.header-line, .header-tools { max-width: 1930px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.header-line { min-height: 71px; }
.header-tools { min-height: 42px; border-top: 1px solid #425d8b66; gap: 9px; }
.brand { display: inline-flex; align-items: center; gap: 9px; flex: none; color: #f3fdff; letter-spacing: -.08em; font-size: 43px; font-weight: 900; font-style: italic; line-height: 1.05; text-shadow: 0 3px 0 #2172ae, 0 0 13px #73defe9c; }
.brand i { position: relative; display: block; width: 31px; height: 31px; flex-shrink: 0; border-radius: 50%; transform: rotate(-16deg); background: radial-gradient(circle at 37% 27%, #fff 0 8%, #c2f5ff 11%, #34b3ff 43%, #1754d7 67%, #87dcff 78%, #122354 92%); box-shadow: inset 0 0 5px #a9edff, 0 0 14px #357ce3; }
.brand i::after { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; right: -3px; top: -3px; background: radial-gradient(circle at 30% 25%, white, #71d6ff 55%, #5091ff 76%); }
.primary, .account, .utility { display: flex; align-items: center; gap: clamp(7px, 1.25vw, 22px); }
.primary a { display: flex; align-items: center; gap: 7px; padding: 9px 8px; color: #d8e8ff; font-size: clamp(13px, 1.08vw, 17px); font-weight: 780; white-space: nowrap; border-radius: 7px; transition: background .2s, color .2s; }
.primary a:hover, .primary a:focus-visible { color: #dbf8ff; background: #223c67; }
.primary a span { font-size: .92em; }
.account { flex: none; gap: 7px; }
.primary-button, .quiet { display: inline-flex; justify-content: center; align-items: center; padding: 8px 14px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; font-weight: 800; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s; }
.primary-button { background: linear-gradient(160deg, #a5efff 2%, #44adff 99%); border-color: #b9efff; color: #081831; box-shadow: 0 3px 13px #2c8de146; }
.primary-button:not(:disabled):hover { background: linear-gradient(160deg, #c9f6ff 2%, #78c8ff 99%); box-shadow: 0 3px 20px #3a9ae17d; }
.quiet { background: linear-gradient(155deg, #213251, #112139); border-color: #4e7aab; color: #e3f3ff; }
.quiet:hover { border-color: #94dcf9; background: #294975; }
.utility button { padding: 4px 0; border: 0; background: none; color: #c1d2eb; font-size: 12px; white-space: nowrap; }
.utility button:hover { color: var(--aqua); }
.utility button span { margin-inline-end: 5px; }
.demo-label { flex: none; display: inline-flex; align-items: center; gap: 6px; color: #bcd0ec; font-size: 12px; font-weight: 620; white-space: nowrap; }
.demo-label i { width: 7px; height: 7px; background: #8ddafd; border-radius: 50%; box-shadow: 0 0 10px #59c6ffb5; }
.header-support { padding: 4px 11px; font-size: 12px; }

.layout { max-width: 1930px; margin-inline: auto; display: grid; grid-template-columns: clamp(170px, 13vw, 247px) minmax(0, 1fr) clamp(235px, 16.1vw, 312px); align-items: start; gap: clamp(12px, 1.02vw, 20px); padding: clamp(12px, 1.3vw, 24px) clamp(14px, 1.6vw, 32px) 32px; }
.left, .right { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.quick-menu > summary { display: none; }
.quick-content { display: grid; gap: 10px; }
.right { position: sticky; top: 124px; }
main { display: grid; gap: 14px; min-width: 0; }
.quick-panel, .panel { border: 1px solid var(--line); border-radius: var(--radius); background: #0d1a30; box-shadow: 0 7px 16px #0409164a; overflow: hidden; }
.wallet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 5px; background: #142340; }
.wallet button { display: grid; justify-items: center; gap: 1px; min-height: 52px; padding: 5px 2px; border-radius: 8px; border: 1px solid #3f6294; background: linear-gradient(180deg, #204677, #111d37); font-weight: 740; font-size: 13px; }
.wallet span { color: var(--aqua); font-size: 15px; }
.wallet button:hover { border-color: #9cdcff; background: #235386; }
.side-nav, .side-links { padding: 5px; }
.side-nav a, .side-links :is(a,button), .side-filter a { width: 100%; min-height: 35px; display: flex; align-items: center; gap: 9px; padding: 6px 9px; color: #c9d9ee; border: 0; border-radius: 7px; background: transparent; text-align: start; font-size: 13px; font-weight: 660; }
.side-nav a span, .side-links :is(a,button) span { flex: 0 0 19px; text-align: center; }
.side-nav a:hover, .side-links :is(a,button):hover, .side-filter a:hover { color: #f1faff; background: #223758; }
.side-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.side-links :is(a,button) { min-height: 36px; font-size: 12px; gap: 4px; padding-inline: 5px; white-space: nowrap; }
.side-links :is(a,button) span { flex-basis: 16px; }
.side-filter h2 { margin: 0; padding: 9px 10px; background: linear-gradient(100deg, #182f56, #101e37); color: #d8ecff; font-size: 14px; font-weight: 780; }
.side-filter a { justify-content: space-between; border-radius: 0; padding-inline: 11px; min-height: 38px; }
.side-filter strong { color: #9dc9f3; font-variant-numeric: tabular-nums; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.74fr) minmax(0, 1fr); gap: 11px; }
.hero { position: relative; display: flex; align-items: center; min-height: clamp(220px, 18.7vw, 345px); isolation: isolate; overflow: hidden; border: 1px solid #70bdf5; border-radius: 17px; background: #0a1d3a; box-shadow: inset 0 0 20px #3069b833, 0 10px 22px #040d256e; }
.hero img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; }
.hero::after { position: absolute; inset: 0; z-index: -1; content: ""; background: linear-gradient(90deg, #091634e8 0%, #0a1a3ca8 38%, transparent 77%); }
.hero-copy { padding: clamp(15px, 1.65vw, 34px); }
.hero h1, .hero h2 { letter-spacing: -.055em; font-weight: 880; line-height: 1.04; margin: 0; text-shadow: 0 4px 14px #050d23c9; }
.hero h1 { font-size: clamp(30px, 3.05vw, 61px); }
.hero em { color: #9ff3ff; text-shadow: 0 2px 11px #50c8ed8f; }
.hero h2 { font-size: clamp(27px, 2.7vw, 56px); }
.event-hero { border-color: #789beb; background: #121b49; }
.event-hero img { object-position: 73% 50%; }
.event-hero::after { background: linear-gradient(90deg, #17183eea 0%, #15194999 30%, transparent 74%); }
.event-hero em { color: #b9c8ff; text-shadow: 0 2px 12px #7898ef81; }
.event-hero .quiet { margin-top: 13px; }
.hero p { color: #d1e4fa; margin: 12px 0 17px; font-size: clamp(13px, 1.02vw, 17px); font-weight: 610; }
.hero .primary-button, .hero .quiet { font-size: 13px; }
.board-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; min-height: 42px; background: linear-gradient(110deg, #1c355e, #10203b); border-bottom: 1px solid #456999; }
.bar h2 { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 15px; line-height: 1.2; font-weight: 790; letter-spacing: -.025em; }
.bar h2 span:not(.count) { font-size: .92em; }
.text-button { padding: 4px 1px; border: 0; background: none; color: #afc6ea; font-size: 12px; white-space: nowrap; }
.text-button:hover { color: var(--aqua); }
.board-row { min-height: 36px; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 7px; align-items: center; border: 0; border-bottom: 1px solid #32476a78; background: transparent; width: 100%; padding: 5px 10px; color: #d2e1f4; text-align: start; font-weight: 600; font-size: 13px; }
.board-row:last-child { border-bottom: 0; }
.board-row > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-row:hover { color: #fff; background: #1c3458; }
.notice-icon { color: #8addfb; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; border: 1px solid #5585b4; background: #183354; }
.genre-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.genre-grid a, .game-card { display: flex; position: relative; isolation: isolate; align-items: end; min-width: 0; min-height: 105px; aspect-ratio: 1.26; border: 1px solid #568bc1; border-radius: 11px; overflow: hidden; padding: 9px; background: #14284d; text-align: start; }
.genre-grid img, .game-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 50%; transition: scale .28s; }
.genre-grid a::after, .game-card::after { content: ""; inset: 0; position: absolute; z-index: -1; background: linear-gradient(0deg, #071428f5, #0b193d59 39%, transparent 68%); }
.genre-grid a:hover img, .game-card:hover img { scale: 1.07; }
.genre-grid a:hover, .game-card:hover { border-color: #a4e8ff; }
.genre-grid a span { color: #f5faff; font-size: clamp(14px, 1.2vw, 23px); font-weight: 840; letter-spacing: -.035em; text-shadow: 0 2px 5px #000; }
.section { border-radius: 14px; }
.section-bar { padding: 11px 13px; }
.section-bar h2 { font-size: 19px; }
.sample-label { color: #b1c8eb; font-size: 12px; }
.sport-controls { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 4px; }
.filters button { padding: 6px 9px; background: #111f38; border: 1px solid #36547d; border-radius: 7px; color: #bfd4f0; font-size: 13px; line-height: 1.15; white-space: nowrap; }
.filters button[aria-pressed=true] { background: #214978; color: #eafaff; border-color: #75b7ec; }
.filters button:hover { border-color: #77b5e6; }
.search input { width: min(100%, 219px); padding: 6px 8px; background: #0a172c; border: 1px solid #34527a; border-radius: 7px; font-size: 13px; }
.search input::placeholder { color: #91aaca; }
.match-feed { display: grid; gap: 1px; background: #253959; border-top: 1px solid #253959; }
.match { display: grid; gap: 8px; padding: 10px 12px 12px; background: #0e1a30; }
.match-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; color: #adc8ee; font-size: 12px; }
.match-head span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-head strong { color: #98edff; flex: none; white-space: nowrap; font-size: 12px; }
.odds-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 5px; }
.odds-button { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 8px 9px; border: 1px solid #3a5682; border-radius: 6px; background: linear-gradient(160deg, #1e3458, #152945); font-size: clamp(12px, 1vw, 15px); text-align: start; }
.odds-button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.odds-button strong { color: #a2e4ff; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 14px; }
.odds-button[aria-pressed=true] { background: #284d7b; border-color: #a2efff; color: #fff; }
.odds-button:hover { border-color: #93cbf7; }
.no-results { padding: 20px; margin: 0; background: #0f1b31; color: var(--muted); }
.lobby-filters { padding: 10px 12px 0; }
.lobby-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 11px 12px 13px; }
.game-card { aspect-ratio: 1.56; border-color: #45688e; }
.game-card span { font-size: clamp(13px, 1.03vw, 16px); font-weight: 760; position: relative; }
.game-card img { object-position: 50% var(--crop, 48%); }
.game-card:nth-child(2) { --crop: 60%; }
.game-card:nth-child(3) { --crop: 40%; }
.game-card:nth-child(2) img { filter: hue-rotate(24deg) saturate(1.16); }
.game-card:nth-child(3) img { filter: hue-rotate(-16deg); }

.slip .bar { background: linear-gradient(115deg, #285481, #131f41); border-color: #629dcd; }
.count { min-width: 20px; padding: 2px 5px; color: #a7ecff; background: #102648; border: 1px solid #5a8cb8; border-radius: 8px; font-size: 11px; text-align: center; }
.slip-body { padding: 9px; }
#slip-items { display: grid; gap: 6px; max-height: 248px; overflow: auto; min-height: 74px; }
.empty-slip { display: grid; place-content: center; margin: 0; min-height: 78px; border: 1px dashed #446387; border-radius: 8px; background: #0a152a; color: #a5bedf; font-size: 13px; text-align: center; }
.slip-item { display: grid; align-items: center; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 7px; padding: 6px 8px; background: #162844; border: 1px solid #3b5a83; border-radius: 7px; }
.slip-item small { color: #b0c4e1; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slip-choice { color: #eef8ff; font-size: 13px; font-weight: 700; }
.slip-choice strong { color: #8deaff; margin-inline-start: 5px; }
.slip-remove { grid-column: 2; grid-row: 1 / span 2; background: #243d66; border: 1px solid #456a96; border-radius: 5px; padding: 1px 6px; line-height: 1.25; font-size: 16px; }
.slip-remove:hover { background: #375987; }
.stake { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 5px; margin-top: 10px; color: #c5d7ee; font-size: 12px; }
.stake input { width: 100%; min-width: 0; padding: 5px 6px; text-align: right; background: #071326; border: 1px solid #3e5d85; border-radius: 5px; font-variant-numeric: tabular-nums; }
.stakes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; margin: 7px 0; }
.stakes button { min-height: 26px; padding: 3px 1px; border: 1px solid #436492; border-radius: 5px; background: #172d4a; font-size: 11px; white-space: nowrap; }
.stakes button:hover { background: #284a73; }
.slip-summary { display: grid; gap: 3px; padding: 8px 0; margin: 0; border-top: 1px solid #385272; }
.slip-summary div { display: flex; justify-content: space-between; gap: 4px; }
.slip-summary dt { color: #b1c6e2; font-size: 12px; }
.slip-summary dd { color: #9beaff; font-variant-numeric: tabular-nums; margin: 0; font-weight: 750; font-size: 13px; }
.slip-submit { width: 100%; }
.slip-message { color: #a9e6fe; font-size: 12px; margin: 6px 0 0; }
.slip-message:empty { display: none; }
.support-grid { display: grid; gap: 6px; }
.support-tile { display: flex; align-items: center; position: relative; isolation: isolate; overflow: hidden; border: 1px solid #508ac6; border-radius: 9px; background: #152e54; min-height: 53px; padding: 9px 12px; color: #f1faff; font-weight: 790; text-shadow: 0 2px 5px #061022; text-align: start; }
.support-tile img { position: absolute; inset: 0; z-index: -2; height: 100%; width: 100%; object-fit: cover; object-position: 53% 43%; transition: scale .25s; }
.support-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #0c1f41f6 5%, #11285369 50%, transparent); }
.support-tile:hover img { scale: 1.07; }
.footer { display: flex; justify-content: space-between; align-items: center; max-width: 1930px; gap: 12px; margin-inline: auto; padding: 14px clamp(14px, 1.6vw, 32px) 23px; border-top: 1px solid #23365a; color: #a2b8da; font-size: 13px; }
.mobile-slip { display: none; }
.dialog { position: fixed; width: min(452px, calc(100vw - 26px)); border: 1px solid #709dd4; border-radius: 13px; background: #12213c; color: var(--text); padding: 22px; box-shadow: 0 20px 80px #0008; }
.dialog::backdrop { background: #030b19c4; backdrop-filter: blur(3px); }
.dialog h2 { margin: 0 31px 13px 0; letter-spacing: -.035em; }
.dialog p { color: #c6d6ec; margin: 0 0 8px; }
.dialog form:last-child { display: flex; justify-content: end; margin-top: 17px; }
.dialog-close { position: absolute; top: 10px; right: 10px; width: 31px; height: 31px; border: 1px solid #5678a8; border-radius: 50%; background: #23395f; font-size: 20px; line-height: 1; }

@media (max-width: 1080px) {
  .left { grid-column: 1 / -1; }
  .quick-menu > summary { display: list-item; width: fit-content; padding: 5px 11px; border: 1px solid #4e7aab; border-radius: 7px; background: #162842; cursor: pointer; }
  .quick-content { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 8px; align-items: start; }
  .layout { grid-template-columns: minmax(0, 1fr) minmax(229px, 25%); }
  .hero h1 { font-size: clamp(29px, 3.8vw, 45px); }
  .primary a { gap: 4px; padding-inline: 5px; }
}
@media (max-width: 790px) {
  html { scroll-padding-top: 131px; }
  .header-line { min-height: 55px; gap: 5px; flex-wrap: wrap; }
  .primary { order: 3; flex: 1 0 100%; overflow-x: auto; justify-content: flex-start; gap: 6px; padding-block: 2px 6px; }
  .primary a { min-height: 30px; padding: 4px 6px; }
  .header-tools { min-height: 31px; }
  .header-tools .demo-label, .header-support { display: none; }
  .utility { width: 100%; overflow-x: auto; gap: 12px; }
  .brand { font-size: 34px; }
  .brand i { width: 24px; height: 24px; }
  .account button { padding: 6px 9px; font-size: 12px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-bottom: 10px; }
  .right { position: static; }
  .support-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .support-tile { font-size: 12px; padding: 7px; }
  .hero { min-height: clamp(166px, 44vw, 260px); }
  .genre-grid a { min-height: 76px; }
  .mobile-slip { position: fixed; bottom: 12px; right: 12px; z-index: 6; display: inline-flex; gap: 7px; }
  .mobile-slip span { color: var(--aqua); }
  .footer { padding-bottom: 65px; }
}
@media (max-width: 440px) {
  .layout { padding-inline: 10px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .main-hero { min-height: 203px; }
  .event-hero { min-height: 108px; }
  .event-hero h2 br { display: none; }
  .event-hero h2 em { margin-left: 5px; }
  .event-hero .hero-copy { padding: 9px 13px; }
  .event-hero .quiet { margin-top: 7px; }
  .hero h1 { font-size: 33px; }
  .hero p { margin: 8px 0 11px; }
  .hero .primary-button, .hero .quiet { padding: 5px 10px; font-size: 12px; }
  .board-grid { gap: 6px; }
  .bar { padding-inline: 8px; }
  .board-row { grid-template-columns: 15px minmax(0, 1fr); padding-inline: 5px; gap: 4px; }
  .board-row span:last-child { display: none; }
  .board-row > span:nth-child(2) { font-size: 12px; }
  .genre-grid { gap: 4px; }
  .genre-grid a { min-height: 67px; padding: 3px 3px 5px; justify-content: center; }
  .genre-grid a span { font-size: 11px; white-space: nowrap; }
  .sport-controls { display: grid; }
  .search input { width: 100%; }
  .odds-button { display: grid; gap: 2px; justify-content: stretch; }
  .odds-button strong { text-align: end; }
  .lobby-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-card { min-height: 89px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
