@font-face {
  font-family: Inter;
  src: url("assets/fonts/bbt_ui_regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("assets/fonts/bbt_ui_semibold.woff") format("woff");
  font-weight: 600;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f4f1e9;
  --surface: #fbf9f3;
  --ink: #14212c;
  --muted: #505d63;
  --orange: #ed683f;
  --orange-ink: #a93a20;
  --dark: #111f29;
  --dark-card: #182831;
  --dark-line: #37464c;
  --line: #d7d2c6;
  --round: 14px;
  font: 1rem/1.55 Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 92px; }
body { margin: 0; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.08; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #0076a4; outline-offset: 4px; }
.container { width: min(1240px, calc(100% - clamp(36px, 10vw, 152px))); margin-inline: auto; }
.skip { position: fixed; z-index: 12; top: 12px; left: 12px; padding: 12px 16px; background: var(--paper); color: var(--ink); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .875rem; font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 26px; align-items: center; min-height: 72px; }
.brand { display: inline-flex; justify-self: start; align-items: center; gap: 12px; white-space: nowrap; }
.brand-main { font-size: 2.15rem; line-height: 1; letter-spacing: -.1em; font-weight: 600; }
.brand-dot { color: var(--orange); }
.brand-sub { padding: 4px 0 4px 12px; border-left: 1px solid var(--line); letter-spacing: .19em; font-size: .69rem; font-weight: 600; }
.main-nav, .languages { display: flex; align-items: center; }
.main-nav { gap: clamp(16px, 3vw, 42px); }
.main-nav a { display: flex; align-items: center; min-height: 44px; color: var(--muted); white-space: nowrap; font-size: .93rem; }
.main-nav a:hover, .footer-links a:hover, .text-link:hover { color: var(--orange-ink); }
.languages { justify-content: flex-end; gap: 3px; }
.languages a { display: grid; place-items: center; min-width: 41px; min-height: 44px; border-radius: 7px; font-size: .875rem; color: var(--muted); font-weight: 600; }
.languages a:hover { background: #eae5d9; color: var(--ink); }
.languages [aria-current="page"] { background: #e9e4d9; color: var(--ink); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(30px, 5vw, 76px); align-items: center; padding-block: 50px 54px; }
.hero-copy { padding-block: 18px; }
.hero .kicker { color: var(--orange-ink); margin-bottom: 19px; }
.hero h1 { font-size: clamp(3.1rem, 5.3vw, 5.15rem); letter-spacing: -.074em; line-height: .99; }
.hero h1 span { color: var(--orange-ink); display: block; }
.hero-intro { max-width: 38ch; color: var(--muted); margin-top: 22px; font-size: 1.04rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin-top: 27px; }
.location { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .875rem; }
.location::before { content: ""; width: 7px; height: 7px; background: var(--orange-ink); border-radius: 50%; }
.hero-art { aspect-ratio: 1.48; overflow: hidden; border-radius: 100px var(--round) var(--round) var(--round); background: #e9ded0; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 56% 50%; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; gap: 8px; border: 1px solid transparent; padding: 9px 15px; border-radius: 7px; font-size: .92rem; line-height: 1.3; font-weight: 600; }
.primary { color: white; background: var(--ink); }
.primary:hover { background: #314652; }
.text-link { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; font-size: .92rem; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.catalog { padding: 54px 0 68px; background: var(--dark); color: var(--paper); }
.catalog :focus-visible, .privacy-request :focus-visible { outline-color: #f7a68a; }
.catalog-head { display: flex; align-items: end; justify-content: space-between; gap: 22px; border-bottom: 1px solid var(--dark-line); padding-bottom: 23px; margin-bottom: 25px; }
.catalog h2, .studio h2 { font-size: clamp(2.1rem, 4vw, 3.55rem); letter-spacing: -.063em; }
.catalog-head p { color: #c1cace; margin-top: 9px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { min-height: 44px; padding: 5px 13px; border: 1px solid var(--dark-line); border-radius: 7px; background: transparent; color: var(--paper); font-size: .875rem; white-space: nowrap; }
.filters button:hover { border-color: #d6cfc1; }
.filters button[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.app-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--dark-line); border-radius: var(--round); background: var(--dark-card); }
.app-media { --media: #183641; display: grid; place-items: center; position: relative; overflow: hidden; background: radial-gradient(ellipse at 54% 5%, var(--media) 4%, #101b23 93%); }
.media-blackball { --media: #385841; }
.media-snooker { --media: #266750; }
.media-carambole { --media: #29586c; }
.media-american-pool { --media: #29715f; }
.media-flipper { --media: #432669; }
.media-dart-club { --media: #6b3938; }
.media-blackball-timer { --media: #245265; }
.card-media { aspect-ratio: 1.74; padding: 17px 16px; border-radius: calc(var(--round) - 1px) calc(var(--round) - 1px) 0 0; border-bottom: 1px solid var(--dark-line); }
.card-media img { width: 100%; height: 100%; min-height: 0; min-width: 0; object-fit: contain; grid-area: 1 / 1; filter: drop-shadow(0 7px 10px #05080b9c); }
.card-media.is-portrait { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.card-media.has-logo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 14px; }
.card-media.has-logo img { grid-area: auto; }
.card-media.has-logo .game-logo { height: auto; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 19px 18px 16px; }
.app-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; margin-bottom: 9px; color: #e3c1b4; font-size: .875rem; }
.app-meta .status { display: inline-flex; align-items: center; gap: 6px; }
.app-meta .status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status.ready { color: #b6dbbb; }
.status.pending { color: #e6bb92; }
.status.unlisted { color: #c1cace; }
.card-body h3 { font-size: clamp(1.15rem, 1.65vw, 1.49rem); letter-spacing: -.035em; }
.card-body h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-body p { margin-top: 8px; margin-bottom: 18px; color: #c4cdd0; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 11px; border-top: 1px solid var(--dark-line); }
.card-actions .button { min-height: 44px; padding-inline: 11px; }
.card-actions .store-link { background: #f1eee5; color: var(--ink); }
.card-actions .store-link:hover { background: #fff; }
.play-icon { width: .74em; height: .81em; background: currentColor; clip-path: polygon(1% 0, 100% 50%, 1% 100%); flex: 0 0 auto; }
.card-actions .outline { border-color: #5b6870; color: var(--paper); }
.card-actions .outline:hover { background: #273b46; }
.studio { display: grid; grid-template-columns: 1fr minmax(0, .86fr); align-items: start; gap: clamp(24px, 5vw, 82px); padding-block: 66px 70px; }
.studio .kicker { color: var(--orange-ink); margin-bottom: 14px; }
.studio-copy p { color: var(--muted); margin-bottom: 17px; }
.studio-copy .button { margin-top: 2px; }
.site-footer { border-top: 1px solid var(--line); background: #eae5da; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 15px 26px; padding-block: 25px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: .875rem; }

.detail { margin-block: 26px 65px; }
.detail .back { color: var(--orange-ink); }
.detail-intro { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1fr); align-items: start; gap: clamp(30px, 5.5vw, 78px); margin-top: 22px; }
.detail-copy { padding-block: 10px 0; }
.detail h1 { margin: 9px 0 18px; font-size: clamp(2.6rem, 5.25vw, 5rem); letter-spacing: -.065em; }
.detail .kicker { color: var(--orange-ink); }
.detail-lead { font-size: 1.13rem; font-weight: 600; margin-bottom: 12px; }
.detail-copy > p:not(.kicker,.detail-lead,.detail-status) { color: var(--muted); }
.detail-status { color: var(--muted); margin-top: 14px; font-size: .9rem; }
.detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 19px; }
.detail h2 { font-size: 1.3rem; margin-top: 24px; letter-spacing: -.03em; }
.detail ul { padding-left: 19px; margin: 10px 0 0; }
.detail li { padding-block: 3px; }
.detail li::marker { color: var(--orange-ink); }
.detail-media { min-height: 300px; padding: 20px 16px; border-radius: var(--round); }
.detail-media img { width: auto; max-height: 550px; height: auto; margin: auto; border-radius: 5px; box-shadow: 0 8px 32px #0005; }
.detail figure figcaption { font-size: .875rem; margin-top: 9px; color: var(--muted); }
.document-note { margin-bottom: 23px; border-left: 3px solid var(--orange); padding: 12px 14px; background: var(--surface); }

.blackball-intro {
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.5fr);
  align-items: center;
  gap: clamp(20px, 4vw, 60px);
  margin: 18px 0 clamp(30px, 5vw, 65px);
}
.blackball-title { padding-block: 10px; }
.blackball-title h1 { margin-bottom: 22px; font-size: clamp(3.1rem, 6.8vw, 6.35rem); }
.blackball-title h1 span { display: block; margin-top: 10px; font-size: .31em; letter-spacing: -.035em; }
.blackball-title .detail-lead { max-width: 32ch; color: var(--muted); font-weight: 400; }
.blackball-shot { min-width: 0; }
.blackball-shot a { display: block; width: fit-content; margin-inline: auto; }
.blackball-shot img { width: 100%; height: auto; }
.blackball-hero-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 235px));
  justify-content: center;
  gap: clamp(9px, 2vw, 28px);
  padding: clamp(12px, 2.5vw, 30px);
  border: 1px solid #30483c;
  border-radius: var(--round);
  background: radial-gradient(ellipse at 50% 7%, #394c39, #162b22 78%);
}
.blackball-hero-shots .blackball-shot a {
  padding: 4px;
  border: 1px solid #788778;
  border-radius: 15px;
  background: #101913;
  box-shadow: 0 12px 24px #0b181480;
}
.blackball-hero-shots .blackball-shot img { border-radius: 11px; }
.blackball-hero-shots .blackball-shot a:focus-visible { outline-color: #eec68c; }
.blackball-hero-shots .blackball-shot figcaption { color: #e4e9df; text-align: center; }
.blackball-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .69fr) minmax(0, 1.24fr);
  align-items: center;
  gap: clamp(16px, 4vw, 56px);
  padding: clamp(21px, 4vw, 52px);
  border-radius: var(--round);
  background: radial-gradient(ellipse at 82% 12%, #2f4737, #17291f 63%);
  color: var(--surface);
}
.blackball-gallery .kicker { color: #eec68c; }
.blackball-gallery h2 { margin: 9px 0 18px; font-size: clamp(1.9rem, 3.8vw, 3.75rem); letter-spacing: -.05em; }
.blackball-gallery-copy > p:not(.kicker) { max-width: 34ch; color: #e4e9df; }
.blackball-gallery .blackball-version { margin-top: 22px; font-size: .85rem; }
.blackball-gallery .blackball-shot { align-self: center; }
.blackball-gallery .blackball-shot a {
  max-width: 235px;
  padding: 4px;
  border: 1px solid #788778;
  border-radius: 16px;
  background: #101913;
  box-shadow: 0 14px 25px #0b181480;
}
.blackball-gallery .blackball-shot a:focus-visible { outline-color: #eec68c; }
.blackball-gallery .blackball-shot img { border-radius: 12px; }
.blackball-gallery .is-wide a { max-width: none; }
.blackball-gallery .blackball-shot figcaption { color: #e4e9df; text-align: center; }
.blackball-modes { margin-top: 30px; }
.blackball-modes ul { display: flex; flex-wrap: wrap; gap: 3px 38px; }
.blackball-modes .text-link { margin-top: 12px; }

@media (max-width: 990px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { gap: 26px; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 112px; }
  .header-inner { grid-template-columns: 1fr auto; gap: 1px 8px; padding-top: 3px; }
  .main-nav { order: 3; grid-column: 1 / -1; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); }
  .main-nav a { min-height: 41px; }
  .hero, .studio, .detail-intro { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 30px 34px; gap: 24px; }
  .hero-copy { padding-block: 4px; }
  .hero h1 { font-size: clamp(2.65rem, 9.5vw, 4.1rem); }
  .hero .kicker { margin-bottom: 14px; }
  .hero-intro { margin-top: 17px; }
  .hero-actions { margin-top: 19px; }
  .hero-art { aspect-ratio: 1.83; border-top-left-radius: 64px; }
  .catalog { padding-block: 34px 42px; }
  .catalog-head { display: block; padding-bottom: 17px; margin-bottom: 18px; }
  .filters { margin-top: 15px; }
  .studio { padding-block: 42px; }
  .detail { margin-block: 16px 44px; }
  .detail-intro { margin-top: 9px; }
  .detail-media { min-height: 0; }
  .detail-media img { max-height: min(560px, 72vh); }
  .blackball-intro { grid-template-columns: minmax(0, 1fr); margin-top: 5px; }
  .blackball-title h1 { font-size: clamp(3.2rem, 12vw, 5.2rem); }
  .blackball-gallery { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .blackball-gallery .blackball-shot a, .blackball-hero-shots .blackball-shot a { border-radius: 12px; }
  .blackball-gallery .blackball-shot img, .blackball-hero-shots .blackball-shot img { border-radius: 8px; }
}
@media (max-width: 550px) {
  .card-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .filters { gap: 5px; }
  .filters button { min-height: 42px; padding-inline: 9px; }
  .card-media { max-height: none; }
  .footer-inner { display: grid; gap: 9px; }
}
@media (max-width: 345px) {
  .brand-sub { display: none; }
}
