@font-face {
  font-family: Thai;
  src: url('./fonts/NotoSansThai-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400 599;
  font-display: swap;
  unicode-range: U+0E00-0E7F;
}
@font-face {
  font-family: Thai;
  src: url('./fonts/NotoSansThai-Bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  unicode-range: U+0E00-0E7F;
}
:root {
  color-scheme: dark;
  --bg: #121513;
  --surface: #1e231f;
  --lift: #272d27;
  --rule: #383e37;
  --text: #f2f0e9;
  --muted: #a8afa4;
  --gold: #d4b27c;
  --ink: #22241c;
  --pad: 18px;
  --radius: 8px;
  --fast: 120ms;
  --top: env(safe-area-inset-top, 0px);
  --bottom: env(safe-area-inset-bottom, 0px);
  font-family: Thai, Arial, system-ui, sans-serif;
  background: #090b0a;
  color: var(--text);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 0;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
button:active:not(:disabled) {
  filter: brightness(0.86);
}
h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}
button span {
  pointer-events: none;
}
.icon {
  width: 21px;
  height: 21px;
  flex: none;
  display: block;
}
.canvas {
  width: min(100%, 480px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
}
.canvas::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-inline: 1px solid #ffffff08;
}
main {
  padding: 0 max(var(--pad), env(safe-area-inset-right)) calc(94px + var(--bottom))
    max(var(--pad), env(safe-area-inset-left));
  min-width: 0;
}
#mast {
  height: calc(69px + var(--top));
  padding: var(--top) var(--pad) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.48rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  min-height: 44px;
}
.brand img {
  border-radius: 8px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 1px;
}
.icon-button,
.filter-button {
  min-width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  color: var(--text);
}
.header-actions .icon-button:last-child {
  color: var(--muted);
}
.provider-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 7px;
}
.provider-name {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  text-align: left;
}
.provider-label,
.count,
.page-num,
.hero-provider,
.player-provider,
.alias,
.subtle,
.result-meta,
.field-label,
.sheet-header + p,
.launch-status {
  color: var(--muted);
}
.provider-label,
.count,
.page-num,
.result-meta {
  font-size: 0.84rem;
}
.provider-label {
  padding-right: 10px;
  border-right: 1px solid var(--rule);
}
.provider-name strong {
  font-size: 0.95rem;
}
.provider-name .icon {
  width: 15px;
  height: 15px;
}
.count,
.page-num,
.numeric {
  font-variant-numeric: tabular-nums;
}
.feature-label,
.section-title,
.list-heading,
.result-meta,
.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.feature-label h1,
.section-title h2 {
  font-size: 1.21rem;
  line-height: 1.45;
  letter-spacing: -0.025em;
}
.feature-label {
  margin-bottom: 8px;
}
.paging {
  display: flex;
  align-items: center;
}
.paging .icon-button {
  min-width: 44px;
  min-height: 44px;
}
.paging .icon {
  width: 15px;
  height: 15px;
}
.page-num {
  min-width: 31px;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
}
.hero {
  isolation: isolate;
  width: 100%;
  min-height: 157px;
  display: grid;
  grid-template-columns: 48% 52%;
  text-align: left;
  background: #262e25;
  border: 1px solid #404839;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.hero-copy {
  z-index: 1;
  padding: 16px 3px 17px 17px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.hero-provider {
  font-family: Arial, sans-serif;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.105em;
  color: #c0c6b8;
}
.hero-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
  font-size: clamp(1.65rem, 7.6vw, 2.55rem);
  line-height: 1.02;
  letter-spacing: -0.043em;
  margin: 8px 0 14px;
  overflow-wrap: break-word;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 4px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}
.hero-cta .icon {
  width: 13px;
  height: 13px;
}
.art {
  isolation: isolate;
  position: relative;
  background: #282f29;
  color: #bbc1ad;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity var(--fast);
}
.art.loaded img {
  opacity: 1;
}
.monogram {
  font:
    italic 2.35rem/1.2 Georgia,
    serif;
  letter-spacing: -0.08em;
  display: block;
}
.art.loaded .monogram {
  visibility: hidden;
}
.hero-art {
  min-width: 0;
  align-self: stretch;
  background: #323c30;
}
.hero-art .monogram {
  font-size: 4rem;
}
.hero-art img {
  object-position: center;
}
.collection {
  margin-top: 21px;
}
.section-title {
  min-height: 44px;
  margin-bottom: 8px;
}
.text-button {
  min-height: 44px;
  color: var(--gold);
  font-size: 0.89rem;
  font-weight: 600;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px 12px;
}
.card {
  min-width: 0;
  position: relative;
}
.game-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  color: var(--text);
}
.game-card > .art {
  aspect-ratio: 1.13;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px #ffffff11;
}
.game-name {
  display: block;
  padding: 7px 1px 0;
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.32;
  overflow-wrap: anywhere;
}
.card-provider {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 3px 1px 0;
}
.card:nth-child(3n + 2) .art {
  background: #33302d;
  color: #bcb3a5;
}
.card:nth-child(3n) .art {
  background: #2a3033;
  color: #a9bac1;
}
.fav {
  position: absolute;
  top: 0;
  right: 0;
  color: #fff;
  min-height: 44px;
  min-width: 44px;
  display: grid;
  place-items: center;
}
.fav .icon {
  width: 29px;
  height: 29px;
  padding: 6px;
  background: #171b18d9;
  border-radius: 50%;
  stroke-width: 1.9;
}
.fav[aria-pressed='true'] .icon {
  color: var(--gold);
  fill: var(--gold);
}
#nav {
  z-index: 4;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 480px);
  display: flex;
  border-top: 1px solid var(--rule);
  background: #1b1f1b;
  padding: 3px max(10px, env(safe-area-inset-right)) calc(4px + var(--bottom))
    max(10px, env(safe-area-inset-left));
  align-items: stretch;
}
.nav-item {
  flex: 1;
  position: relative;
  min-height: 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 0.77rem;
}
.nav-item .icon {
  width: 20px;
  height: 20px;
}
.nav-item[aria-current='page'] {
  color: var(--gold);
  font-weight: 700;
}
.nav-item[aria-current='page']::before {
  content: '';
  position: absolute;
  top: -4px;
  width: 28px;
  height: 2px;
  background: var(--gold);
}
.list-heading {
  padding: 21px 0 16px;
}
.list-heading h1,
.player-name {
  font-size: 1.65rem;
  letter-spacing: -0.04em;
}
.tools,
.search-field,
.launch-row,
.dialog-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-field {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 7px;
  padding-left: 12px;
  height: 46px;
}
.search-field > .icon {
  color: var(--muted);
  width: 18px;
}
.search-field input {
  border: 0;
  background: transparent;
  min-width: 0;
  flex: 1;
  height: 44px;
  font-size: 1rem;
  padding: 0 4px;
  outline-offset: -2px;
}
.search-field input::-webkit-search-cancel-button {
  display: none;
}
.search-field input::placeholder {
  color: #a5aca1;
}
.clear .icon {
  width: 17px;
}
.filter-button {
  width: 46px;
  height: 46px;
  border: 1px solid var(--rule);
  border-radius: 7px;
  background: var(--surface);
}
.filter-button.selected {
  color: var(--gold);
  border-color: var(--gold);
}
.result-meta {
  min-height: 50px;
}
.more,
.secondary {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-weight: 600;
}
.more {
  margin-top: 23px;
}
.empty {
  padding: 44px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.empty > .icon {
  width: 28px;
  height: 28px;
  color: var(--gold);
}
.empty h2 {
  font-size: 1.13rem;
}
.empty p,
.subtle {
  color: var(--muted);
  font-size: 0.91rem;
}
.primary {
  min-height: 46px;
  padding: 10px 17px;
  border-radius: 6px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
}
.empty .primary {
  margin-top: 7px;
}
.player {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 25px 0;
}
.player-header {
  font-weight: 600;
}
.player-art {
  width: min(48%, 190px);
  aspect-ratio: 1;
  border-radius: 9px;
}
.player-provider {
  font-size: 0.85rem;
  margin: 17px 0 3px;
}
.player-name {
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.alias {
  font-size: 0.91rem;
  margin-top: 7px;
}
.details {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  text-align: left;
  font-size: 0.91rem;
  padding: 17px 0;
  margin: 22px 0 10px;
  border-block: 1px solid var(--rule);
}
.details dt {
  color: var(--muted);
}
.details dd {
  text-align: right;
}
.launch-status {
  font-size: 0.9rem;
  margin: 11px 0;
}
.launch-row {
  width: 100%;
}
.large {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.large .icon {
  width: 16px;
}
.player-fav {
  position: static;
  width: 48px;
  height: 48px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
}
.player-fav .icon {
  background: none;
  width: 31px;
  height: 31px;
}
#network {
  background: #353125;
  color: #ebd4ad;
  padding: 8px var(--pad);
  font-size: 0.87rem;
}
.boot {
  padding: 32px 0;
  color: var(--muted);
}
.has-sheet {
  overflow: hidden;
}
dialog {
  position: fixed;
  inset: auto 0 0;
  margin: 0 auto;
  background: #212621;
  color: var(--text);
  border: 1px solid #424840;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  width: min(100%, 480px);
  max-width: 100%;
  max-height: 88vh;
  max-height: 88dvh;
  overflow: auto;
  padding: 15px var(--pad) calc(23px + var(--bottom));
  z-index: 12;
}
dialog::backdrop {
  background: #030604af;
}
.sheet-header {
  margin-bottom: 11px;
}
.sheet-header h2 {
  font-size: 1.24rem;
}
.sheet-header .icon-button {
  margin-right: -8px;
}
dialog p {
  margin: 10px 0;
  font-size: 0.95rem;
}
dialog .full {
  width: 100%;
  margin-top: 15px;
}
.option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  width: 100%;
  min-height: 54px;
  border-top: 1px solid var(--rule);
}
.option > small {
  margin-left: auto;
  color: var(--muted);
}
.option .icon {
  color: var(--gold);
  width: 18px;
}
.field,
.field-label {
  display: block;
}
.field-label {
  font-size: 0.88rem;
  margin-bottom: 6px;
}
.field select {
  width: 100%;
  padding: 8px 12px;
  height: 46px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--bg);
  margin-bottom: 14px;
}
.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 51px;
  border-block-start: 1px solid var(--rule);
}
.toggle input {
  width: 20px;
  height: 20px;
  accent-color: var(--gold);
  flex: none;
}
.dialog-actions {
  margin-top: 20px;
}
.dialog-actions button {
  flex: 1;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
[hidden] {
  display: none !important;
}
.unavailable {
  color: var(--muted);
}
@media (min-width: 410px) {
  :root {
    --pad: 20px;
  }
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 10px;
  }
  .game-card > .art {
    aspect-ratio: 1;
  }
  .hero {
    min-height: 182px;
  }
  .hero-copy {
    padding-left: 20px;
  }
}
@media (max-width: 349px) {
  :root {
    --pad: 13px;
  }
  .section-title h2 {
    font-size: 1.1rem;
  }
  .hero-copy {
    padding-left: 12px;
  }
  .hero {
    min-height: 144px;
  }
  .grid {
    gap: 16px 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
main.immersive {
  padding: 0;
}
.frame-player {
  height: calc(100vh - 69px - var(--top) - var(--bottom));
  height: calc(100dvh - 69px - var(--top) - var(--bottom));
  display: flex;
  flex-direction: column;
}
.frame-player iframe {
  width: 100%;
  min-height: 0;
  flex: 1;
  border: 0;
  background: #121513;
}
.frame-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--rule);
}
.frame-bar strong {
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}
.frame-bar button {
  flex-shrink: 0;
}
.frame-status {
  padding: 8px var(--pad);
  font-size: 0.87rem;
  color: var(--muted);
}
#network:not([hidden]) ~ main .frame-player {
  height: calc(100dvh - 110px - var(--top) - var(--bottom));
}
