/* PLAYROOM · a quiet collection. Storefront only; management and player stay independent. */
.playroom-page { background: #faf7f5; scrollbar-gutter: auto; }
.playroom-site {
  --bg: #faf7f5;
  --card: #fffdfb;
  --ink: #42363b;
  --ink2: #73656b;
  --muted: #87777e;
  --rose: #95546d;
  --line: #e9e0e1;
  --shadow: 0 8px 24px #46323b05;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-offset: max(12px, var(--safe-bottom));
  background: var(--bg);
  color: var(--ink);
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.playroom-site::before, .playroom-site::after { display: none; }
.playroom-site .main-container {
  max-width: 1024px;
  padding: max(32px, env(safe-area-inset-top)) 40px calc(110px + var(--safe-bottom));
}
.playroom-site .site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 24px;
  margin: 0 0 36px;
  border-bottom: 1px solid var(--line);
}
.playroom-site .brand { flex-direction: row; align-items: center; gap: 13px; }
.playroom-site .brand-type { display: flex; flex-direction: column; gap: 4px; }
.playroom-site .brand-name { color: var(--ink2); font-size: 8px; font-weight: 500; letter-spacing: 2.3px; }
.playroom-site .brand-room { color: var(--ink); font: 27px/1.1 "Baskerville", "Iowan Old Style", Georgia, serif; letter-spacing: 2.6px; }
.playroom-site .site-announcement {
  align-items: center;
  padding: 13px 16px;
  margin: 0 0 32px;
  gap: 12px;
  background: #f2e9e9;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.playroom-site .announcement-icon { width: 22px; height: 24px; background: none; border: 0; border-radius: 0; color: var(--rose); }
.playroom-site .announcement-icon svg { width: 18px; height: 18px; }
.playroom-site .announcement-label { font-size: 10px; color: var(--rose); margin: 0 0 2px; letter-spacing: .5px; }
.playroom-site .site-announcement p { color: #715b65; font-size: 11px; line-height: 1.7; }
.playroom-site .section-intro { margin-bottom: 20px; gap: 16px; align-items: baseline; }
.playroom-site .section-intro h1 { font-size: 24px; font-weight: 550; letter-spacing: .3px; }
.playroom-site .section-intro.collection-heading h1 { font-size: 16px; font-weight: 550; letter-spacing: .6px; }
.playroom-site .section-intro > span { font-size: 10px; color: var(--muted); letter-spacing: 1px; flex: none; }
.playroom-site .category-filters { gap: 18px; margin: -4px 0 22px; padding: 0 0 1px; border-bottom: 1px solid var(--line); }
.playroom-site .category-chip {
  min-height: 44px;
  padding: 9px 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  color: var(--ink2);
  gap: 6px;
  font-size: 12px;
  box-shadow: none;
}
.playroom-site .category-chip span { background: none; padding: 0; font-size: 9px; color: var(--muted); }
.playroom-site .category-chip.active { color: var(--rose); border-bottom-color: var(--rose); font-weight: 600; }
.playroom-site .category-chip.active span { color: var(--rose); background: none; }
.playroom-site .category-chip:focus-visible { outline-offset: -3px; }
.playroom-site .game-grid { gap: 30px 24px; }
.playroom-site .game-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.playroom-site .game-cover { aspect-ratio: 3/4; background: #e9d9dc; }
.playroom-site .cover-lumiere { background: linear-gradient(155deg, #e9d9dd, #cdb8c2); }
.playroom-site .cover-etoile { background: linear-gradient(155deg, #e6d3cc, #c8aaa6); }
.playroom-site .cover-pattern::before { inset: 22px; border-radius: 0; transform: none; border-color: #fff7; }
.playroom-site .cover-pattern::after { inset: 28px; width: auto; height: auto; border: 1px solid #fff3; border-radius: 0; transform: none; }
.playroom-site .cover-title { color: #fffdfb; font: italic 400 clamp(19px, 3.4vw, 36px)/1.4 "Baskerville", "Iowan Old Style", Georgia, serif; letter-spacing: 2px; filter: none; }
.playroom-site .game-meta { padding: 19px 20px 18px; flex: 1; }
.playroom-site .game-title { font-size: 15px; line-height: 1.6; font-weight: 600; letter-spacing: .2px; }
.playroom-site .game-en { font: 10px/1.5 "Avenir Next", sans-serif; letter-spacing: 1.5px; color: var(--muted); margin-top: 4px; }
.playroom-site .game-intro { color: var(--ink2); font-size: 12px; line-height: 1.8; min-height: 3.6em; margin: 13px 0 18px; }
.playroom-site .game-bottom { border-top: 1px solid var(--line); padding-top: 13px; gap: 8px; }
.playroom-site .price { font-size: 17px; font-weight: 500; color: var(--rose); font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.playroom-site .card-action { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: var(--ink2); white-space: nowrap; }
.playroom-site .card-action svg { width: 13px; height: 13px; }
.playroom-site .card-action.upcoming { color: var(--muted); }
.playroom-site .footer-note { color: var(--muted); font-size: 10px; margin-top: 40px; letter-spacing: 1px; }

/* One 56px control surface. Safe area moves the whole bar, never its contents. */
.playroom-site .tabbar {
  position: fixed;
  z-index: 50;
  inset: auto 16px var(--nav-offset);
  width: auto;
  max-width: 504px;
  height: 56px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 5px;
  border: 1px solid #e8dcdf;
  border-radius: 18px;
  background: #fffdfbf2;
  box-shadow: 0 6px 28px #51353f0c;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.playroom-site .tabbar-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; width: 100%; height: 44px; max-width: none; }
.playroom-site .tab-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 7px;
  position: relative;
  min-width: 0;
  min-height: 44px;
  height: 44px;
  padding: 0 3px;
  border: 0;
  border-radius: 12px;
  color: #7b6a72;
  background: none;
  font-size: 11px;
  line-height: 1;
  font-weight: 500;
  white-space: nowrap;
  transition: color .16s, background .16s;
}
.playroom-site .tab-item.active { color: #89465f; background: #f2e5e9; box-shadow: none; font-weight: 500; }
.playroom-site .tab-icon, .playroom-site .tab-item svg { width: 20px; height: 20px; stroke-width: 1.65; flex: none; transform: none; filter: none; transition: none; }
.playroom-site .tab-item:focus-visible { outline: 2px solid #89465f; outline-offset: -2px; }
.playroom-site .toast { bottom: calc(72px + var(--nav-offset)); }

/* The same quiet hierarchy across guides, reviews, author and purchase details. */
.playroom-site .panel, .playroom-site .guide-accordion {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.playroom-site .panel { padding: 26px; }
.playroom-site .stack { gap: 20px; }
.playroom-site .panel h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.playroom-site .primary, .playroom-site .secondary-btn, .playroom-site .outline-btn { border-radius: 10px; min-height: 44px; font-weight: 500; box-shadow: none; }
.playroom-site .primary { background: #95546d; border-color: #95546d; color: #fffdfb; }
.playroom-site .secondary-btn { background: #f3e9ec; border-color: #f3e9ec; color: #804860; }
.playroom-site .outline-btn { background: transparent; border-color: #dcccD1; color: #775465; }
.playroom-site .field { background: #fffcfa; border-color: #daceD3; border-radius: 9px; color: var(--ink); }
.playroom-site .field:focus { border-color: var(--rose); box-shadow: 0 0 0 3px #95546d0c; }
.playroom-site .field::placeholder { color: #8b7b83; }
.playroom-site .label, .playroom-site .hint { color: var(--ink2); }
.playroom-site .field-group { margin: 20px 0; }
.playroom-site .chip { background: transparent; border-color: var(--line); color: var(--ink2); min-height: 36px; }
.playroom-site .chip.active { background: #f2e5e9; color: #89465f; border-color: #e5ccd6; }
.playroom-site .tag, .playroom-site .web-play-note { background: #f4ecee; border-color: var(--line); color: #805469; }
.playroom-site .guide-accordion-list { gap: 14px; }
.playroom-site .guide-accordion > summary { gap: 16px; padding: 22px; background: transparent; }
.playroom-site .guide-accordion-index { background: none; font: italic 24px/1 "Baskerville", Georgia, serif; color: #b38496; width: 28px; flex-basis: 28px; border-radius: 0; }
.playroom-site .guide-accordion-heading strong { font-weight: 500; color: var(--ink); }
.playroom-site .guide-accordion-heading small { color: var(--ink2); font-size: 10px; }
.playroom-site .guide-accordion-arrow { background: none; color: var(--rose); }
.playroom-site .guide-accordion-body { border-color: var(--line); padding: 0 24px 20px; }
.playroom-site .guide-accordion-step { border-color: var(--line); padding: 22px 0; }
.playroom-site .guide-step-heading span { background: #f5edef; color: var(--rose); border-radius: 5px; }
.playroom-site .guide-step-text { line-height: 1.9; }
.playroom-site .author-avatar { border-radius: 50%; width: 64px; height: 64px; background: #e7cfd6; color: #8c566d; font: italic 32px "Baskerville", Georgia, serif; }
.playroom-site .author-hero { gap: 18px; }
.playroom-site .author-hero h2 { font-size: 20px; font-weight: 500; }
.playroom-site .web-play-note { border-radius: 9px; padding: 18px; }
.playroom-site .round-avatar { background: #eee0e5; color: #86536b; font-weight: 500; }
.playroom-site .review-top { align-items: flex-start; }
.playroom-site .review-content { line-height: 1.85; }
.playroom-site .faq-item { border-color: var(--line); }
.playroom-site .faq-item summary { font-weight: 500; padding: 16px 0; }
.playroom-site .detail-hero { border-radius: 13px; box-shadow: none; border: 1px solid var(--line); }
.playroom-site .detail-hero .game-cover { aspect-ratio: 16/9; }
.playroom-site .top-back { min-height: 44px; padding-bottom: 12px; }
.playroom-site .payment-tabs { background: #f3e9ec; }
.playroom-site .payment-tabs button { min-height: 40px; color: var(--ink2); }
.playroom-site .payment-tabs button.selected { color: var(--rose); box-shadow: none; font-weight: 500; }
.playroom-site .file-drop { background: #faf4f5; border-color: #d9bbc7; border-radius: 9px; color: #80576a; }
.playroom-site .purchase-notice { background: #fffdfb; border-color: var(--line); border-radius: 18px; }
.playroom-site .notice-header, .playroom-site .notice-footer { background: #faf5f5; border-color: var(--line); }
.playroom-site .notice-symbol { background: #f1e3e9; border: 0; border-radius: 10px; }
.playroom-site .notice-copy { color: var(--ink2); }

@media (hover: hover) {
  .playroom-site .game-card:hover { border-color: #cdb5bf; transform: translateY(-3px); box-shadow: 0 10px 24px #59354109; }
  .playroom-site .tab-item:not(.active):hover { background: #f7f0f2; color: #89465f; }
  .playroom-site .primary:hover { background: #82425c; filter: none; }
}
@media (min-width: 900px) {
  .playroom-site .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .playroom-site .game-meta { padding: 17px 15px; }
  .playroom-site .game-title { font-size: 14px; }
  .playroom-site .game-intro { font-size: 11px; }
}
@media (max-width: 600px) {
  .playroom-site .main-container { padding: max(24px, env(safe-area-inset-top)) 20px calc(104px + var(--safe-bottom)); }
  .playroom-site .site-head { padding-bottom: 21px; margin-bottom: 27px; gap: 10px; }
  .playroom-site .brand { gap: 10px; }
  .playroom-site .brand-name { font-size: 7px; letter-spacing: 1.8px; }
  .playroom-site .brand-room { font-size: 24px; letter-spacing: 2px; }
  .playroom-site .site-announcement { padding: 12px 13px; margin-bottom: 28px; }
  .playroom-site .section-intro { margin-bottom: 16px; }
  .playroom-site .section-intro h1 { font-size: 23px; }
  .playroom-site .section-intro.collection-heading h1 { font-size: 15px; }
  .playroom-site .category-filters { gap: 17px; margin-bottom: 18px; }
  .playroom-site .category-chip { font-size: 11px; }
  .playroom-site .game-grid { gap: 20px 12px; }
  .playroom-site .game-card { border-radius: 10px; }
  .playroom-site .game-meta { padding: 13px 11px; }
  .playroom-site .game-title { font-size: 13px; letter-spacing: 0; }
  .playroom-site .game-en { font-size: 8px; letter-spacing: 1px; }
  .playroom-site .game-intro { font-size: 10px; margin: 10px 0 12px; }
  .playroom-site .game-bottom { padding-top: 11px; gap: 4px; }
  .playroom-site .price { font-size: 16px; }
  .playroom-site .card-action { font-size: 9px; gap: 2px; }
  .playroom-site .card-action svg { width: 11px; height: 11px; }
  .playroom-site .panel { padding: 22px 18px; }
  .playroom-site .guide-accordion > summary { padding: 19px 16px; gap: 11px; }
  .playroom-site .guide-accordion-heading strong { font-size: 13px; }
  .playroom-site .guide-accordion-index { font-size: 22px; flex-basis: 25px; }
  .playroom-site .guide-accordion-body { padding: 0 18px 18px; }
}
@media (max-width: 360px) {
  .playroom-site .main-container { padding-left: 16px; padding-right: 16px; }
  .playroom-site .tabbar { left: 12px; right: 12px; }
  .playroom-site .tab-item { font-size: 10px; gap: 4px; }
  .playroom-site .tab-icon, .playroom-site .tab-item svg { width: 18px; height: 18px; }
  .playroom-site .game-title { font-size: 12px; }
}

/* Landscape uses a quiet left rail; the page gets its full vertical space back. */
@media (orientation: landscape) {
  .playroom-site .site-shell {
    display: grid;
    grid-template-columns: 172px minmax(0, 1fr);
    align-items: start;
    column-gap: 32px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 max(32px, env(safe-area-inset-right)) 0 max(32px, env(safe-area-inset-left));
  }
  .playroom-site .main-container {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    width: 100%;
    padding: max(32px, env(safe-area-inset-top)) 0 max(48px, var(--safe-bottom));
  }
  .playroom-site .tabbar {
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    align-self: start;
    top: max(32px, env(safe-area-inset-top));
    bottom: auto;
    left: auto;
    right: auto;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
    padding: 7px;
    border-radius: 15px;
  }
  .playroom-site .tabbar-inner { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 48px; height: auto; gap: 4px; }
  .playroom-site .tab-item { justify-content: flex-start; height: 48px; min-height: 48px; padding: 0 14px; gap: 12px; font-size: 12px; border-radius: 9px; }
  .playroom-site .toast { bottom: 24px; }
}
@media (orientation: landscape) and (max-width: 900px) {
  .playroom-site .site-shell { grid-template-columns: 128px minmax(0, 1fr); column-gap: 20px; padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
  .playroom-site .main-container { padding-top: max(20px, env(safe-area-inset-top)); padding-bottom: max(40px, var(--safe-bottom)); }
  .playroom-site .tabbar { top: max(20px, env(safe-area-inset-top)); padding: 5px; border-radius: 12px; }
  .playroom-site .tabbar-inner { grid-auto-rows: 44px; }
  .playroom-site .tab-item { height: 44px; min-height: 44px; padding: 0 9px; gap: 9px; font-size: 11px; }
  .playroom-site .tab-item svg { width: 19px; height: 19px; }
}
