/* FeltCheck — shared styles
   Layout: classic guide-site frame. Grey nav bars, white page with a main column and a right sidebar,
   numbered room cards with an orange call-to-action. Light theme only, by choice. */
:root {
  --bg: #ffffff;
  --page: #ffffff;
  --ink: #1f2326;
  --text: #33383c;
  --muted: #6b7176;
  --line: #dcdfe1;
  --nav: #3b3f42;
  --subnav: #d9dcde;
  --orange: #f2993a;
  --orange-dark: #de8424;
  --link: #2a69ad;
  --felt: #1b5245;
  --red: #c4372e;
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.65; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
h1, h2, h3 { color: var(--ink); line-height: 1.25; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(1.8rem, 4vw, 2.3rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.container { width: min(1000px, 100% - 32px); margin-inline: auto; }
[hidden] { display: none !important; }

/* Header */
.top { background: #fff; }
.top-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; padding-block: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo:hover { text-decoration: none; }
.mark { display: block; width: 100%; height: 100%; }
.logo .mark { width: 40px; height: 42px; flex: none; }
.logo-text { display: grid; line-height: 1.1; }
.logo-text .wordmark { font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.logo-text small { font-family: var(--font); font-size: 0.72rem; font-weight: 600; color: var(--muted); letter-spacing: 0.01em; }
.top-links { display: flex; align-items: center; gap: 14px; font-size: 0.85rem; }
.mainnav { background: var(--nav); }
.mainnav .container, .subnav .container { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 0 8px; }
.mainnav a { color: #fff; font-size: 0.88rem; font-weight: 600; padding: 9px 10px; }
.mainnav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--orange); }
.subnav { background: var(--subnav); }
.subnav .container { justify-content: flex-start; gap: 0 22px; }
.subnav a { color: var(--ink); font-size: 0.8rem; font-weight: 600; padding: 6px 0; }

/* Page frame */
.page { background: var(--page); display: grid; grid-template-columns: minmax(0, 1fr) 250px; margin-block: 0 32px; }
.content { padding: 30px 32px 40px; display: grid; gap: 22px; align-content: start; min-width: 0; border-right: 1px solid var(--line); }
.sidebar { padding: 30px 22px; display: grid; gap: 26px; align-content: start; }

.page-wide { grid-template-columns: minmax(0, 1fr); }
.page-wide .content { border-right: 0; }
.crumbs { font-size: 0.8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--link); }
.toc { border: 1px solid var(--line); background: #f8f9f9; padding: 14px 18px; max-width: 68ch; }
.toc-title { font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.toc ol { columns: 2 16rem; column-gap: 28px; margin: 0; padding-left: 1.2rem; display: block !important; font-size: 0.92rem; }
.toc li { margin-bottom: 4px; break-inside: avoid; }
.room-links { font-size: 0.88rem; margin-top: 4px; }
.byline { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); }
.byline .avatar { width: 24px; height: 24px; flex: none; }
.disclose-line { font-size: 0.82rem; color: var(--muted); margin: 0; }
.disclose { border: 1px solid var(--line); padding: 10px 12px; font-size: 0.78rem; font-style: italic; color: var(--muted); line-height: 1.55; }
.content > p, .content section > p { max-width: 68ch; }
.content section { display: grid; gap: 14px; }
.content ul, .content ol { margin: 0; padding-left: 1.3rem; display: grid; gap: 6px; max-width: 68ch; }

/* Ranked room cards */
.rooms { display: grid; gap: 4px; }
.room { position: relative; border: 1px solid var(--line); background: #fff; padding: 16px 18px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px 16px; align-items: center; }
.rank { position: absolute; left: -9px; top: 16px; width: 22px; height: 26px; background: var(--ink); color: #fff; font-size: 0.78rem; font-weight: 700; display: grid; place-items: center; }
.rank::after { content: ""; position: absolute; left: 0; bottom: -6px; border-top: 6px solid #000; border-left: 9px solid transparent; }
.room-logo { position: relative; overflow: hidden; min-width: 132px; height: 54px; padding: 0 14px; border-radius: 6px; background: #121416; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; letter-spacing: 0.01em; }
.room-logo.is-swc { background: var(--felt); }
/* Official logo file covers the name tile when present (see logos/README.md) */
.brand-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8px 12px; background: inherit; }
.room-meta { display: grid; gap: 2px; }
.room-tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--felt); }
.room-best { font-size: 0.88rem; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.9rem; min-height: 46px; min-width: 170px; padding: 10px 26px; text-decoration: none !important; }
.btn-play { background: var(--orange); color: #fff; }
.btn-play:hover { background: var(--orange-dark); }
.btn-visit { background: #fff; color: var(--ink); border: 2px solid #c6cacd; }
.btn-visit:hover { border-color: var(--ink); }
.room-body { grid-column: 1 / -1; display: grid; gap: 6px; }
.room-body h3 { font-size: 1.2rem; }
.plus { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 2px; }
.plus li { position: relative; padding-left: 1.4rem; }
.plus li::before { content: "+"; position: absolute; left: 0; top: -1px; color: var(--orange); font-weight: 800; font-size: 1.15rem; }
.minus li::before { content: "–"; color: var(--muted); }
.terms { font-size: 0.7rem; color: var(--muted); margin: 6px 0 14px; line-height: 1.45; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.9rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: #f4f5f6; color: var(--ink); font-weight: 700; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 700; color: var(--ink); }
.num { font-variant-numeric: tabular-nums; }

/* Boxes */
.note { background: #f4f7f5; border-left: 4px solid var(--felt); padding: 14px 16px; display: grid; gap: 6px; max-width: 68ch; }
.note h3 { font-size: 1.05rem; }
.promo { border: 2px solid var(--orange); border-radius: 6px; padding: 14px 16px; display: grid; gap: 6px; background: #fff8f0; }
.promo-when { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--orange-dark); }
.promo-title { font-weight: 800; color: var(--ink); font-size: 1.05rem; line-height: 1.3; }
.promo .btn { min-width: 0; width: 100%; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0; }
.facts div { background: #fff; padding: 10px 12px; display: grid; gap: 2px; }
.facts dt { font-size: 0.75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.facts dd { margin: 0; font-weight: 700; color: var(--ink); }
.procon { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 12px; }
.procon > div { border: 1px solid var(--line); padding: 14px 16px; display: grid; gap: 8px; align-content: start; }
.cta-card { border: 1px solid var(--line); padding: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.cta-card .room-logo { min-width: 120px; }
.faq-item { display: grid; gap: 6px; max-width: 68ch; }
.faq-item h3 { font-size: 1.05rem; }
.about { border: 1px solid var(--line); padding: 16px 18px; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.about .mark { width: 54px; height: 54px; }
.about strong { color: var(--ink); }
.lic-none { color: var(--red); font-weight: 700; }
.help { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 10px; }
.help div { border: 1px solid var(--line); padding: 12px 14px; display: grid; gap: 2px; font-size: 0.92rem; }
.help .where { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.help strong { color: var(--ink); }

/* Screenshots */
.gallery-section { display: grid; gap: 12px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 14px; }
.shot { margin: 0; border: 1px solid var(--line); background: #f8f9f9; display: grid; }
.shot img { display: block; width: 100%; height: auto; background: #e9ecee; }
.shot figcaption { font-size: 0.82rem; color: var(--muted); padding: 8px 10px; line-height: 1.45; }
.shot-by { white-space: nowrap; }

/* In-content call to action */
.cta-band { background: var(--felt); color: #fff; border-radius: 6px; padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.cta-band > div { flex: 1 1 18rem; display: grid; gap: 4px; }
.cta-band-title { font-weight: 800; font-size: 1.15rem; line-height: 1.3; }
.cta-band-text { font-size: 0.85rem; opacity: 0.85; }

/* Sticky call to action on phones */
.sticky-cta { display: none; }
@media (max-width: 820px) {
  .sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,0.12); }
  .sticky-cta[hidden] { display: none !important; }
  .sticky-text { flex: 1; display: grid; line-height: 1.25; font-size: 0.8rem; color: var(--muted); min-width: 0; }
  .sticky-text strong { color: var(--ink); font-size: 0.95rem; }
  .sticky-cta .btn { min-width: 0; min-height: 44px; padding: 8px 20px; }
  .sticky-close { border: 0; background: transparent; color: var(--muted); font-size: 1.4rem; line-height: 1; width: 36px; height: 44px; cursor: pointer; }
  body.has-sticky { padding-bottom: 76px; }
}

/* Sidebar */
.side-block { display: grid; gap: 10px; }
.side-block h2 { font-size: 1.15rem; }
.side-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 0.92rem; }
.side-links .label { color: var(--red); font-weight: 600; margin-top: 6px; }
.side-links hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.side-safe { border-top: 1px solid var(--line); padding-top: 18px; font-size: 0.88rem; color: var(--muted); display: grid; gap: 8px; }

/* Footer */
.site-footer { background: var(--nav); color: #cdd1d4; font-size: 0.85rem; }
.site-footer a { color: #fff; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 20px; padding-block: 28px 18px; }
.foot-cols h2 { color: #fff; font-size: 0.95rem; margin-bottom: 8px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot-bottom { border-top: 1px solid #53585c; padding-block: 16px 24px; display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; }

.foot-legal { display: flex; align-items: center; gap: 12px; }

@media (max-width: 820px) {
  .page { grid-template-columns: 1fr; }
  .content { border-right: 0; padding: 24px 18px 32px; }
  .sidebar { border-top: 1px solid var(--line); padding: 24px 18px; }
  .mainnav .container { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .mainnav a { white-space: nowrap; }
  .subnav { display: none; }
  .top-links a:not([hreflang]) { display: none; }
  .top-inner { flex-wrap: nowrap; }
  .content { gap: 18px; padding-top: 18px; }
}
@media (max-width: 560px) {
  .room { grid-template-columns: auto 1fr; }
  .room .btn { grid-column: 1 / -1; width: 100%; }
  .room-logo { min-width: 112px; height: 48px; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color 0.15s ease, border-color 0.15s ease; }
}
