@font-face {
  font-family: Lobby;
  src: url(assets/ui-regular.woff) format('woff');
  font-display: swap;
}
@font-face {
  font-family: Lobby;
  src: url(assets/ui-bold.woff) format('woff');
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #461227;
  --cream: #fff0dc;
  --plate: #fff3e2;
  --orange: #c34305;
  --edge: #e9630e;
  --shadow: #67240038;
  --type: Lobby, 'Noto Sans KR', 'Malgun Gothic', system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 0; background: #fff6e9; color: var(--ink); font: 16px/1.5 var(--type); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid #5c1d49; outline-offset: 4px; }
[hidden] { display: none !important; }
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 1.25em; height: 1.25em; display: block; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linejoin: round; stroke-linecap: round; }
.skip { position: absolute; z-index: 3; left: 12px; top: -100px; background: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

.header { background: var(--plate); border-bottom: 1px solid #7e2f131f; }
.header-inner {
  min-height: 68px;
  max-width: 1660px;
  margin: auto;
  padding: 10px clamp(14px, 2.5vw, 38px);
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 32px);
}
.brand { display: block; flex: 0 0 auto; }
.brand img { display: block; width: clamp(116px, 13vw, 196px); height: auto; }
.service-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: clamp(5px, .7vw, 14px);
  border-inline: 1px solid #dca683;
  padding-inline: 9px;
}
.service-nav button, .mobile-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: .875rem;
  font-weight: 700;
  white-space: nowrap;
  background: transparent;
  border: 0;
  border-radius: 9px;
  min-height: 40px;
  padding: 5px 4px;
}
.service-nav button:hover, .mobile-nav button:hover { background: #ffd7ba; }
.service-nav svg, .mobile-nav svg { flex: none; }
.account { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.button {
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.25;
  padding: 10px 15px;
  min-height: 40px;
  white-space: nowrap;
}
.button.outline { color: var(--ink); background: #fff6ea; border-color: #883c49; }
.button.outline:hover { background: #ffe4cd; }
.button.solid, .card-action {
  color: #fff8ed;
  background: linear-gradient(180deg, #da5106, #af3100);
  box-shadow: inset 0 1px 0 #ffac6c, 0 2px 2px #79320028;
}
.button.solid:hover, .game-card:hover .card-action { background: #a73607; }
.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: #fde5d0;
  border: 1px solid #dc9e79;
  border-radius: 12px;
}
.menu-toggle { display: none; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 41fr) minmax(0, 30fr) minmax(0, 29fr);
  align-items: center;
  min-height: clamp(290px, 28vw, 432px);
  max-width: 1660px;
  margin: 0 auto;
  background:
    radial-gradient(ellipse at 62% 50%, #ffc184bf 15%, #ef681a00 64%),
    linear-gradient(146deg, #ea591d62, #ec5c1970),
    #ed732e url(assets/clay-texture.webp) repeat;
  overflow: hidden;
}
.hero::before, .hero::after {
  position: absolute;
  content: '';
  pointer-events: none;
  border-radius: 50%;
  width: 60%;
  height: 72px;
  background: #ef6d27;
  box-shadow: inset 0 4px 8px #ffad64b0, 0 9px 18px #7a27034d;
  z-index: -1;
}
.hero::before { top: -42px; right: 4%; rotate: -4deg; }
.hero::after { bottom: -40px; right: -12%; rotate: -8deg; height: 104px; background: #e95a17; }
.hero-visual { position: absolute; inset: 0 auto 0 0; z-index: -1; width: 42%; overflow: hidden; }
.hero-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 47% 50%;
  mask-image: linear-gradient(to right, #000 91%, transparent 100%);
}
.hero[data-category]:not([data-category="casino"]) .hero-visual { display: grid; align-items: center; padding: 20px 9%; }
.hero[data-category]:not([data-category="casino"]) .hero-visual img { aspect-ratio: 1; height: auto; max-height: 100%; object-fit: cover; mask-image: none; border-radius: 22%; border: 5px solid #ffe0af; box-shadow: 0 12px 26px #83311266; }

.hero-copy { grid-column: 2; text-align: center; padding: 16px 7px 20px; }
.hero-copy h1 {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: .23em .29em .32em;
  background: radial-gradient(ellipse at 35% 8%, #fff7e8, #ffe5c6 75%, #ffcd9f 100%);
  border-radius: 18% 16% 17% 15% / 32% 24% 32% 25%;
  box-shadow: inset 0 3px 2px #fff7ea, 0 9px 0 #ad421327, 0 12px 22px #7628054d;
  color: #571732;
  font-weight: 900;
  font-size: clamp(2.02rem, 3.95vw, 4.1rem);
  line-height: 1.14;
  letter-spacing: -.075em;
  white-space: nowrap;
  transform: rotate(-2deg);
  text-shadow: 0 2px #6c244340, 0 3px #4d132d18;
}
.hero-copy h1::after {
  content: '';
  display: block;
  width: 63%;
  height: 8px;
  margin: 8px auto 0;
  border-radius: 65% 40% 65% 50%;
  background: linear-gradient(#fb9a37, #cf4800);
}
.hero-copy p { color: #421123; font-weight: 700; font-size: clamp(1rem, 1.65vw, 1.54rem); line-height: 1.34; margin: 17px 0 20px; }
.hero-action { padding: 12px 24px; min-height: 47px; border-radius: 999px; font-size: clamp(1rem, 1.5vw, 1.3rem); box-shadow: inset 0 2px 0 #ffab35, 0 6px 12px #8f2d0269 !important; }

.game-nav {
  grid-column: 3;
  display: grid;
  gap: clamp(6px, .84vw, 14px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 12px clamp(12px, 1.65vw, 28px) 12px clamp(4px, .8vw, 12px);
}
.game-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: clamp(88px, 8.4vw, 138px);
  border: 2px solid #f7c38d;
  border-radius: 22% 20% 20% 22% / 28% 27% 29% 25%;
  background: radial-gradient(ellipse at 39% 0%, #fff4df, #ffe1b9);
  box-shadow: inset 0 3px 2px #fff6d8, 0 6px 0 #bb430659, 0 9px 12px #71250242;
  color: #60142e;
  font-weight: 700;
  font-size: clamp(.95rem, 1.55vw, 1.58rem);
  line-height: 1.15;
  white-space: nowrap;
  transition: transform 160ms ease, filter 160ms ease;
}
.game-nav a:nth-child(2), .game-nav a:nth-child(3) {
  background: radial-gradient(ellipse at 40% 0%, #e75b09, #b83a04);
  box-shadow: inset 0 3px 2px #ffab5a, 0 6px 0 #b43a0c5e, 0 9px 12px #71250250;
  border-color: #eb671e;
  color: #fff5e7;
}
.game-nav a svg { width: 1.9em; height: 1.9em; }
.game-nav a:hover { transform: translateY(-3px); filter: brightness(1.07); }
.game-nav a[aria-current] { outline: 2px solid #60142e; outline-offset: -6px; }
.game-nav a:focus-visible { outline-offset: 4px; }

.catalog {
  max-width: 1660px;
  margin: auto;
  padding: 15px clamp(12px, 1.6vw, 28px) 28px;
  background: linear-gradient(155deg, #fff1dc, #ffead4 72%, #fff4e7);
}
.section-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 16px; }
.section-top h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: clamp(1.5rem, 2.7vw, 2.58rem);
  font-weight: 900;
  letter-spacing: -.045em;
}
.section-top svg { color: #b63a03; flex: none; }
.section-top h2::after { content: ''; width: clamp(26px, 6vw, 96px); height: 5px; border-radius: 55% 30%; background: #e86416; transform: translateY(8px) rotate(-4deg); }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(9px, 1vw, 16px); }
.cards[data-category="mini"], .cards[data-category="virtual"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.game-card {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: clamp(158px, 13vw, 208px);
  width: 100%;
  padding: 0;
  overflow: hidden;
  text-align: left;
  color: var(--ink);
  background: #fff0db;
  border: 3px solid #e96712;
  border-radius: clamp(14px, 1.7vw, 25px);
  box-shadow: 0 3px 0 #a83a0920, inset 0 1px 0 #fff;
  transition: box-shadow 160ms ease, border-color 160ms ease;
}
.cards[data-category="casino"] .game-card:nth-child(-n+2) { grid-column: span 2; min-height: clamp(160px, 14vw, 228px); }
.game-card img { position: absolute; inset: 0 0 0 auto; width: 62%; height: 100%; object-fit: cover; object-position: 63% 44%; z-index: -2; }
.game-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #fff0db 34%, #fff0dbf5 40%, #fff0dbb0 51%, #fff0db00 72%); z-index: -1; }
.game-card:hover { box-shadow: 0 4px 10px #76301135; border-color: #b63800; }
.card-copy { display: flex; align-items: flex-start; justify-content: center; flex-direction: column; width: 63%; padding: 15px 0 15px clamp(9px, 1.6vw, 28px); gap: 6px; }
.card-label { color: #643245; font-weight: 700; font-size: .875rem; line-height: 1.2; }
.card-copy strong { letter-spacing: -.06em; line-height: 1.22; font-size: clamp(1rem, 1.65vw, 1.58rem); word-break: keep-all; }
.cards[data-category="casino"] .game-card:nth-child(-n+2) .card-copy strong { font-size: clamp(1.2rem, 2.15vw, 2.05rem); }
.cards[data-category="casino"] .game-card:nth-child(-n+2) .card-copy { gap: 10px; }
.cards[data-category="casino"] .game-card:nth-child(-n+2) .card-label { font-size: clamp(1rem, 1.6vw, 1.45rem); }
.card-action { display: inline-flex; justify-content: center; border-radius: 999px; margin-top: 7px; min-width: 67px; padding: 5px 15px; font-weight: 700; font-size: .875rem; }

.dialog {
  width: min(92vw, 460px);
  max-height: 85dvh;
  overflow: auto;
  border: 2px solid #df6728;
  border-radius: 22px;
  background: #fff4e6;
  color: var(--ink);
  padding: 0;
  box-shadow: 0 20px 58px #2d102c55;
}
.dialog::backdrop { background: #310d1daf; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px 15px 22px; border-bottom: 1px solid #e8bca7; }
.dialog-header h2 { margin: 0; font-size: 1.37rem; }
.dialog-body { padding: 18px 22px 22px; }
.dialog-body p { margin: 0; }
.detail-list { list-style: none; display: grid; gap: 8px; padding: 0; margin: 0; }
.detail-list button { border: 1px solid #e8bca7; background: #fff9f1; border-radius: 9px; width: 100%; text-align: left; padding: 9px 12px; font-weight: 700; min-height: 44px; }
.detail-list button:hover { background: #ffdfc0; }
.mobile-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.mobile-nav button { padding: 10px 4px; min-height: 44px; border: 1px solid #ecc7b0; }

body:has(.entry-notice[open]) { overflow: hidden; }
.entry-notice { width: min(92vw, 460px); border-width: 3px; }
.entry-notice::backdrop { background: #271219b8; }
.entry-art { position: relative; background: #ed732e; }
.entry-art img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; object-position: center 42%; }
.entry-close { position: absolute; inset: 12px 12px auto auto; }
.entry-close .icon-button { background: #fff3e2; box-shadow: 0 2px 9px #4c1c2b38; }
.entry-content { padding: 19px 22px 21px; }
.entry-content h2 { font-size: clamp(1.5rem, 5vw, 2rem); line-height: 1.25; letter-spacing: -.05em; margin: 0 0 7px; }
.entry-content p { margin: 0 0 15px; word-break: keep-all; }
.entry-content .button { border-radius: 999px; padding-inline: 20px; min-height: 44px; }
.entry-footer { display: flex; justify-content: space-between; padding: 4px 12px; border-top: 1px solid #e8bca7; background: #fff8ed; }
.entry-footer button { font-size: .875rem; font-weight: 700; border: 0; border-radius: 8px; background: none; min-height: 44px; padding: 5px 10px; }
.entry-footer button:hover { background: #ffe4cc; }

@media (max-width: 1170px) {
  .service-nav { display: none; }
  .menu-toggle { display: grid; }
  .header-inner { min-height: 60px; }
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-items: start;
  }
  .hero-visual { position: relative; inset: unset; width: 100%; height: clamp(202px, 58vw, 345px); margin: 0; }
  .hero-visual img { object-position: center 42%; mask-image: linear-gradient(to bottom, #000 84%, transparent); }
  .hero[data-category]:not([data-category="casino"]) .hero-visual { justify-items: center; overflow: visible; height: auto; padding: 12px; }
  .hero[data-category]:not([data-category="casino"]) .hero-visual img { width: min(52vw, 230px); }
  .hero-copy { grid-column: 1; padding: 1px 10px 14px; margin-top: -6px; }
  .hero-copy h1 { font-size: clamp(2rem, 8.3vw, 3.45rem); }
  .hero-copy p { margin: 12px 0; }
  .hero-action { min-height: 43px; padding: 8px 20px; }
  .game-nav { grid-column: 1; grid-template-columns: repeat(4,minmax(0, 1fr)); padding: 4px 12px 17px; gap: 6px; }
  .game-nav a { font-size: clamp(.8rem, 2.7vw, .95rem); min-height: 74px; }
  .game-nav a svg { width: 1.6em; height: 1.6em; }
  .section-top h2::after { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards[data-category="casino"] .game-card:nth-child(-n+2) { grid-column: span 1; min-height: 0; }
  .game-card { flex-direction: column; min-height: 0; }
  .game-card img { position: static; width: 100%; aspect-ratio: 8/6; height: auto; }
  .game-card::before { content: none; }
  .card-copy, .cards[data-category="casino"] .game-card:nth-child(-n+2) .card-copy { width: 100%; padding: 10px; gap: 4px; }
  .cards[data-category="casino"] .game-card:nth-child(-n+2) .card-copy strong { font-size: 1rem; }
  .cards[data-category="casino"] .game-card:nth-child(-n+2) .card-label { font-size: .875rem; }
}

@media (max-width: 385px) {
  .header-inner { padding-inline: 10px; gap: 5px; }
  .account { gap: 5px; }
  .account .button { padding-inline: 9px; font-size: .8125rem; }
  .account .icon-button { width: 37px; }
  .section-top h2 { font-size: 1.35rem; }
  .game-nav { padding-inline: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
