@font-face {
  font-family: "OnHanzi CJK";
  src: url("/games/hanzi-mahjong/assets/fonts/simkai-hanzi.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+3000-303F, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF;
}
:root {
  color-scheme: light;
  font-family: "OnHanzi CJK", "Segoe UI", system-ui, sans-serif;
  font-size: 100%;
  color: #29272e;
  background: #e5e4e8;
  --oh-muted: #625e6a;
  --oh-accent: #6a2999;
  --oh-line: #c8c5cd;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; }
button, summary, select { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #a650d9; outline-offset: 4px; }
p { line-height: 1.6; }
h1, h2, h3, p { margin-top: 0; }
.oh-wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.oh-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.oh-skip { position: absolute; z-index: 20; top: 8px; left: 8px; padding: 12px; background: white; transform: translateY(-150%); }
.oh-skip:focus { transform: none; }
.oh-header { background: #242329; color: #f6f3fa; border-top: 4px solid #8f44b8; box-shadow: 0 2px 5px #18121e35; }
.oh-header-inner { min-height: 72px; display: flex; align-items: center; gap: 54px; }
.oh-logo { display: inline-flex; align-items: baseline; flex-shrink: 0; color: inherit; font-size: 1.75rem; font-weight: 750; letter-spacing: -1.1px; text-decoration: none; }
.oh-logo span { color: #d5a4f0; }
.oh-nav { display: flex; align-items: center; gap: 32px; }
.oh-nav a { padding-block: 24px; text-decoration: none; font-size: 1rem; }
.oh-nav a:hover, .oh-nav [aria-current] { color: #dfb4f7; }
.oh-eyebrow { margin-bottom: 16px; color: var(--oh-accent); font-size: .875rem; font-weight: 650; letter-spacing: 1.4px; }
h1 { margin-bottom: 16px; font-size: clamp(2.5rem, 4.2vw, 3.75rem); font-weight: 650; line-height: 1.05; letter-spacing: -1.8px; }
.oh-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border: 1px solid #733397; border-radius: 3px; background: #733397; color: #fff; text-decoration: none; font-weight: 650; font-size: 1rem; }
.oh-button:hover:not(:disabled) { background: #8842af; }
.oh-tile { display: grid; place-items: center; min-height: 86px; background: #f5f0d9; color: #ad313b; font-size: 2.6rem; border: 1px solid #e6dec5; border-radius: 5px; box-shadow: 0 6px 0 #b9bea0, 0 10px 0 #0c2b25; }
.oh-tile-pinyin { color: #22613e; font-family: system-ui, sans-serif; font-size: 1.6rem; font-weight: 600; }
.oh-games { padding-block: 30px; scroll-margin-top: 20px; }
h2 { margin-bottom: 16px; font-size: 1.5rem; font-weight: 650; letter-spacing: -.5px; line-height: 1.25; }
.oh-catalog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; border-block: 1px solid var(--oh-line); }
.oh-filters { display: flex; gap: 24px; }
.oh-filters button { padding: 14px 3px 11px; border: 0; border-bottom: 3px solid transparent; color: var(--oh-muted); background: transparent; font-size: 1rem; }
.oh-filters [aria-pressed="true"] { border-color: var(--oh-accent); color: var(--oh-accent); font-weight: 650; }
.oh-catalog-toolbar > p { margin: 0; color: var(--oh-muted); font-size: .875rem; }
.oh-game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.oh-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #cecbd2; border-radius: 3px; text-decoration: none; background: #f7f6f8; box-shadow: 0 2px 4px #29203212; }
.oh-card:hover { border-color: #9c78af; box-shadow: 0 4px 12px #40324d25; }
.oh-card-art { display: flex; align-items: center; justify-content: center; gap: 12px; height: 190px; overflow: hidden; }
.oh-art-hanzi-mahjong { display: grid; grid-template-columns: 1fr 1fr; padding: 24px 34px 30px; background: #24594b; }
.oh-card-art .oh-tile { min-height: 58px; font-size: 1.9rem; }
.oh-card-art .oh-tile-pinyin { font-size: 1.05rem; }
.oh-art-character-detective { padding: 18px 16px 0; align-items: end; gap: 8px; background: #b98e5e; }
.oh-art-character-detective img { width: calc((100% - 16px) / 3); height: 168px; object-fit: cover; object-position: top; background: #ddbd94; }
.oh-art-character-detective img:nth-child(2) { height: 155px; }
.oh-art-weather-slots { padding-inline: 24px; background: #34556c; }
.oh-reel { display: grid; place-items: center; gap: 12px; width: 30%; min-height: 116px; padding: 12px 6px; border-radius: 3px; background: #f0ece1; color: #233e4c; font-size: .875rem; font-weight: 650; box-shadow: 0 5px 0 #a7b8ba; }
.oh-reel img { width: min(100%, 64px); height: 64px; }
.oh-card-copy { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.oh-card-copy .oh-eyebrow { margin-bottom: 10px; font-size: .875rem; letter-spacing: .5px; }
.oh-card h2 { margin-bottom: 12px; font-size: 1.375rem; font-weight: 650; letter-spacing: -.5px; }
.oh-card-copy > p:not(.oh-eyebrow) { color: var(--oh-muted); font-size: 1rem; margin-bottom: 18px; }
.oh-card-copy > .oh-card-course { margin-top: auto; padding-top: 6px; font-size: .875rem !important; }
.oh-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #d9d6de; padding-top: 15px; }
.oh-badges { display: flex; gap: 6px; }
.oh-level-badge { border: 1px solid #cec4d6; background: #eee8f2; color: #5e3478; padding: 3px 8px; font-size: .875rem; font-weight: 650; }
.oh-card-play { color: #542778; font-size: .875rem; font-weight: 700; }
.oh-coming { color: #62556c; font-size: .875rem; }
.oh-art-idea { background: #e7d9ef; }
.oh-art-idea span { display: grid; place-items: center; width: 76px; height: 76px; border: 2px dashed #a583b7; border-radius: 20px; color: #5e3478; font-size: 2.5rem; }
.oh-card-idea .oh-card-bottom { margin-top: auto; }
.oh-install { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; margin-bottom: 32px; padding: 20px; border: 1px solid #cec4d6; border-radius: 12px; background: #f7f3fa; }
.oh-install img { border-radius: 12px; }
.oh-install h2 { margin-bottom: 2px; font-size: 1.125rem; }
.oh-install p { margin-bottom: 0; color: var(--oh-muted); font-size: .875rem; }
.oh-install details { font-size: .875rem; }
.oh-install summary { color: #542778; font-weight: 650; padding-block: 8px; }
.oh-install details p { max-width: 300px; }
.oh-footer { color: #d5cedc; background: #29262e; }
.oh-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 30px; font-size: .875rem; }
.oh-footer .oh-logo { font-size: 1.375rem; }
.oh-contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; padding-block: 60px; }
.oh-contact-intro h1 { font-size: clamp(2.4rem, 4vw, 3.25rem); }
h1 em { color: var(--oh-accent); font-style: normal; }
.oh-lead { max-width: 490px; color: var(--oh-muted); font-size: 1.125rem; }
.oh-contact-tip { margin-top: 36px; max-width: 400px; }
.oh-contact-tip h2 { font-size: 1.125rem; }
.oh-contact-tip p { color: var(--oh-muted); }
.oh-contact-social { margin-top: 28px; }
.oh-contact-form { min-width: 0; padding: 28px; background: #f7f6f8; border: 1px solid #cecbd2; border-radius: 3px; }
.oh-form-field { display: grid; gap: 9px; margin-bottom: 24px; }
.oh-form-field label { font-size: 1rem; font-weight: 650; }
.oh-form-field label span { color: var(--oh-muted); font-weight: 400; }
.oh-form-field p { margin-bottom: 0; color: var(--oh-muted); font-size: .875rem; }
.oh-form-field input, .oh-form-field select, .oh-form-field textarea { width: 100%; min-width: 0; min-height: 48px; border: 1px solid #aaa4b1; border-radius: 3px; padding: 12px; background: #fff; color: #29272e; font-size: 1rem; }
.oh-form-field select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%236a2999' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.oh-form-field textarea { resize: vertical; line-height: 1.6; }
.oh-form-field textarea::placeholder { color: #726c79; }
.oh-form-field small, .oh-privacy { color: var(--oh-muted); font-size: .875rem; line-height: 1.6; }
.oh-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#contact-status { margin: 18px 0 0; }
#contact-status:empty { margin: 0; }
@media (max-width: 1000px) {
  .oh-game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oh-header-inner { gap: 32px; }
  .oh-card-copy { padding: 16px; }
  .oh-art-hanzi-mahjong { padding-inline: 20px; }
  .oh-art-weather-slots { padding-inline: 16px; gap: 8px; }
  .oh-contact-layout { gap: 32px; }
}
@media (max-width: 700px) {
  .oh-install { grid-template-columns: auto 1fr; gap: 12px; }
  .oh-install-actions { grid-column: 1 / -1; }
  .oh-wrap { width: calc(100% - 32px); }
  .oh-header-inner { flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-block: 14px; }
  .oh-logo { font-size: 1.6rem; }
  .oh-nav { gap: 18px; flex-wrap: wrap; }
  .oh-nav a { padding-block: 8px; font-size: .875rem; }
  .oh-catalog-toolbar { align-items: start; flex-direction: column; gap: 0; padding-bottom: 12px; }
  .oh-game-grid { grid-template-columns: 1fr; gap: 22px; }
  .oh-card-art { height: 200px; }
  .oh-card-copy { padding: 20px; }
  .oh-art-hanzi-mahjong { padding-inline: 40px; }
  .oh-art-weather-slots { padding-inline: 28px; gap: 16px; }
  .oh-footer-inner { flex-wrap: wrap; gap: 20px; }
  .oh-contact-layout { grid-template-columns: 1fr; padding-block: 40px; }
  .oh-contact-form { padding: 22px; }
}
