:root {
  color-scheme: light;
  --ink: #182d24;
  --felt: #152923;
  --paper: #f7f3e9;
  --cream: #fff8e7;
  --orange: #f4b481;
  --muted: #46554b;
  --rule: #d9d1c2;
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Nanum Myeongjo", sans-serif;
  font-size: 100%;
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.65; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .22em; }
button { color: inherit; font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #bd591d; outline-offset: 4px; }
.hero :focus-visible, .contact :focus-visible, .topbar :focus-visible { outline-color: #ffe4a8; }
.wrap { width: min(calc(100% - 3rem), 1140px); margin-inline: auto; }
.skip, .sr-only { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.skip:focus { clip-path: none; width: auto; height: auto; top: 1rem; left: 1rem; padding: .6rem 1rem; z-index: 5; color: var(--ink); background: var(--cream); }
.topbar { background: var(--felt); color: var(--cream); border-bottom: 1px solid #ffffff26; }
.top-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 800; text-decoration: none; white-space: nowrap; letter-spacing: -.05em; }
.brand-davao { display: block; width: 108px; height: 36px; object-fit: contain; }
.footer-inner .brand-davao { background: var(--felt); padding: 7px; border-radius: 6px; height: 38px; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(.85rem, 2vw, 1.8rem); }
nav a { font-size: .9rem; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.hero { color: var(--cream); background: radial-gradient(ellipse at 79% 39%, #304b37, transparent 52%), var(--felt); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.04fr 1fr; align-items: center; min-height: 530px; gap: 2rem; padding-block: 48px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.07em; word-break: keep-all; }
h1 { font-size: clamp(3rem, 7vw, 6.35rem); font-weight: 900; }
h1 em { color: var(--orange); font-style: normal; }
.hero p { font-size: 1.08rem; color: #e1e5d7; max-width: 30rem; margin-top: 1.55rem; word-break: keep-all; }
.actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; max-width: 29rem; margin-top: 1.5rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .55rem 1.2rem; border: 1px solid transparent; border-radius: 8px; font-weight: 800; font-size: .94rem; text-decoration: none; }
.button:hover { filter: brightness(1.08); }
.actions .button { min-height: 64px; gap: .65rem; padding: .75rem .85rem; border-radius: 12px; box-shadow: 0 5px 0 #071b1677; font-size: 1.0625rem; white-space: nowrap; }
.button-kakao { background: #fee500; color: #241807; }
.button-telegram { background: #229ed9; color: #071e2a; }
.messenger-logo { display: block; width: 28px; height: 28px; flex: none; object-fit: contain; }
.button-kakao .messenger-logo { transform: scale(1.22); }
.button-telegram .messenger-logo { border-radius: 50%; outline: 1.5px solid #fff; }
.hand { --card-width: 42%; position: relative; width: min(100%, 500px); aspect-ratio: 1.19; margin-inline: auto; }
.hero-card { display: flex; flex-direction: column; justify-content: space-between; position: absolute; top: 12%; width: var(--card-width); aspect-ratio: .68; border-radius: 9%; border: 3px solid #ffedd4; outline: 1px solid #16292130; padding: 5.1%; font: 1.5rem Georgia, serif; box-shadow: 0 12px 24px #061a1390; }
.hero-card::before { content: ""; position: absolute; inset: 5%; border: 1px solid currentColor; border-radius: 7%; opacity: .4; pointer-events: none; }
.hero-card span:last-child, .corner:last-child { align-self: end; }
.hero-left { left: 12%; color: #eff0d6; background: repeating-linear-gradient(135deg,#ffffff13 0 1px,transparent 1px 18px), #3f6352; transform: rotate(-23deg) translateY(7%); }
.hero-right { right: 9%; color: #fff0d9; background: repeating-linear-gradient(45deg,#ffffff20 0 1px,transparent 1px 18px), #aa563d; transform: rotate(24deg) translateY(9%); }
.hero-front { left: 30%; color: #a13f27; background: #f9eacb; transform: rotate(-3deg); }
.hero-emblem { align-self: center; font-size: clamp(4rem, 11vw, 9rem); line-height: .9; }
.hero-logo { display: grid; overflow: hidden; place-items: center; align-self: center; width: 100%; aspect-ratio: 1.3; border-radius: 8%; background: #fff; }
.hero-logo img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.section { padding-block: clamp(3rem, 7vw, 6.25rem); }
h2 { font-size: clamp(2rem, 4.7vw, 3.65rem); font-weight: 900; }
.section-head p { color: var(--muted); margin-top: .85rem; word-break: keep-all; }
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.4rem; }
.filters button { padding: .46rem 1rem; border: 1px solid var(--rule); border-radius: 999px; background: #fffaf1; min-height: 42px; }
.filters button[aria-pressed="true"] { background: var(--felt); color: white; border-color: var(--felt); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin-top: 1.2rem; }
.game-card { border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; background: #fffaf1; display: flex; flex-direction: column; min-width: 0; }
.card-art { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; position: relative; min-height: 140px; margin: .65rem .65rem 0; padding: 1.1rem; border-radius: 11px; font-family: Georgia, serif; text-align: center; }
.card-art::after { content: ""; position: absolute; inset: 7px; border: 1px solid currentColor; border-radius: 6px; opacity: .42; }
.card-art .corner:first-child { align-self: start; justify-self: start; }
.card-art .corner:last-child { justify-self: end; }
.card-art .symbol { font-size: 4.9rem; line-height: .9; }
.orange { background: #edbb93; color: #7f3326; }
.green { background: #466d58; color: #faf0c8; }
.plum { background: #77526b; color: #fce1d3; }
.card-body { padding: 1.25rem 1.2rem 1.35rem; display: flex; align-items: flex-start; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.55rem; margin-top: .2rem; }
.card-body p { color: var(--muted); word-break: keep-all; }
.card-body p:not(.game-meta) { padding: .6rem 0 1rem; }
.game-meta { font-size: .875rem; font-weight: 700; }
.card-body a { margin-top: auto; font-weight: 800; font-size: .95rem; }
.guide { border-top: 1px solid var(--rule); background: #e8ecde; }
.guide-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(1.5rem, 5vw, 4.25rem); }
.guide-grid p, .contact-grid p { margin-top: 1rem; max-width: 34rem; word-break: keep-all; }
.guide-list { margin: 0; border-top: 1px solid #b8c3b3; }
.guide-list div { padding: .85rem 0; border-bottom: 1px solid #b8c3b3; }
dt { font-weight: 800; }
dd { margin: .25rem 0 0; color: #384b40; word-break: keep-all; }
.contact { background: var(--felt); color: var(--cream); }
.contact-grid { align-items: center; }
.contact-grid p { color: #e1e5d7; }
.selected-game { font-weight: 700; }
.contact-image { aspect-ratio: 1.65; border-radius: 18px; background: #314a3b url("./table-cards.webp") center / cover; }
footer { background: #eee7d9; color: var(--ink); }
.footer-inner { padding-block: 1.2rem; align-items: flex-start; }
.policy { max-width: 780px; margin: auto; padding-block: clamp(2.8rem, 6vw, 5rem); }
.policy h1 { font-size: clamp(2.35rem, 6vw, 4.25rem); margin-bottom: 1.15rem; }
.policy h2 { font-size: 1.45rem; margin: 2rem 0 .6rem; }
.policy p + p { margin-top: .65rem; }
.policy .button { margin-top: 1rem; border-color: #4e6856; background: white; }
.cookie-banner { position: fixed; z-index: 4; inset: auto 1rem 1rem auto; width: min(100% - 2rem, 370px); padding: 1rem; border-radius: 12px; background: #fffaf0; color: var(--ink); border: 1px solid var(--rule); box-shadow: 0 4px 30px #14271b30; }
.cookie-banner strong { display: block; font-size: 1rem; }
.cookie-banner p { margin-top: .2rem; font-size: .875rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .65rem; }
.cookie-actions button { border: 1px solid var(--rule); background: #fffaf0; padding: .38rem .65rem; border-radius: 6px; min-height: 40px; font-weight: 700; font-size: .875rem; }
.cookie-actions button:last-child { color: white; background: var(--felt); border-color: var(--felt); }
@media (max-width: 760px) {
  .hero-grid, .guide-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { min-height: unset; gap: 1rem; padding-block: 3rem .4rem; }
  .hand { max-width: 390px; }
  .hero-card { font-size: 1rem; }
  .hero-emblem { font-size: clamp(3.7rem, 18vw, 7rem); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 2rem); }
  .top-inner, .footer-inner { flex-wrap: wrap; gap: .65rem; padding-block: .75rem; }
  nav { gap: .85rem; }
  .card-grid { grid-template-columns: 1fr; }
  .actions .button { min-height: 60px; gap: .45rem; padding-inline: .4rem; font-size: 1rem; }
  .messenger-logo { width: 24px; height: 24px; }
}
@media (max-width: 350px) {
  .hero-grid { padding-top: 1.85rem; }
  .hero h1 { font-size: 2.55rem; }
  .hero p { margin-top: .95rem; }
  .actions { gap: .5rem; }
  .hero .actions { margin-top: 1.1rem; }
  .actions .button { gap: .35rem; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
