/* Kofe Chess — the board, the players, the chess page. */

/* ---------- board themes ---------- */
.cb-board { --l: #ecd2a6; --d: #a8744a; --lc: #8a5a30; --dc: #f3dfbb; }
.cb-board.theme-marble { --l: #efebe4; --d: #9ea6ad; --lc: #6d7780; --dc: #f4f1ec; }
.cb-board.theme-emerald { --l: #eeeed2; --d: #769656; --lc: #6a8a4c; --dc: #f0f0d8; }
.cb-board.theme-midnight { --l: #c3cedc; --d: #5a6f8c; --lc: #4e6280; --dc: #dfe6ef; }
.cb-board.theme-rose { --l: #f3dfd8; --d: #c0857e; --lc: #a8655e; --dc: #f8ebe6; }

/* ---------- the board ---------- */
.ch-boardwrap { position: relative; padding: 9px; border-radius: 16px;
  background: linear-gradient(135deg, #6b4423 0%, #4a2c15 45%, #2f1b0c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 220, 170, 0.35), inset 0 -2px 4px rgba(0, 0, 0, 0.4), 0 24px 60px -18px rgba(30, 15, 5, 0.65), 0 2px 6px rgba(30, 15, 5, 0.25); }
.ch-boardwrap::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 7px), radial-gradient(120% 80% at 30% 0%, rgba(255, 210, 150, 0.18), transparent 60%); }
.cb-board { position: relative; width: 100%; aspect-ratio: 1; border-radius: 6px; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.cb-squares, .cb-marks, .cb-pieces { position: absolute; inset: 0; }
.cb-sq { position: absolute; width: 12.5%; height: 12.5%; }
.cb-sq.l { background: var(--l); }
.cb-sq.d { background: var(--d); }
.theme-walnut .cb-sq, .theme-rose .cb-sq { background-image: repeating-linear-gradient(97deg, rgba(90, 50, 20, 0.05) 0 1px, transparent 1px 5px), linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(0, 0, 0, 0.05)); }
.theme-marble .cb-sq { background-image: radial-gradient(120% 70% at 20% 30%, rgba(255, 255, 255, 0.35), transparent 55%), linear-gradient(125deg, transparent 40%, rgba(80, 80, 90, 0.08) 41%, transparent 43%); }
.cb-sq i { position: absolute; font: 700 clamp(8px, 2.3vw, 12px)/1 var(--body); font-style: normal; opacity: 0; transition: opacity .2s; pointer-events: none; }
.has-coords .cb-sq i { opacity: 0.95; }
.cb-sq.l i { color: var(--lc); } .cb-sq.d i { color: var(--dc); }
.cb-rank { left: 4%; top: 5%; } .cb-file { right: 6%; bottom: 4%; }

.cb-mk { position: absolute; width: 12.5%; height: 12.5%; pointer-events: none; }
.cb-mk.is-last { background: rgba(255, 206, 74, 0.42); }
.cb-mk.is-sel { background: rgba(255, 206, 74, 0.62); }
.cb-mk.is-hover { box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.7); }
.cb-mk.is-check { background: radial-gradient(circle, rgba(255, 60, 40, 0.95) 0%, rgba(230, 20, 10, 0.55) 30%, rgba(200, 0, 0, 0) 72%); animation: cb-check 1.2s ease-in-out infinite alternate; }
@keyframes cb-check { from { opacity: .75; } to { opacity: 1; } }
.cb-mk.is-dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 30%; height: 30%; margin: -15% 0 0 -15%; border-radius: 50%; background: rgba(30, 15, 0, 0.24); }
.cb-mk.is-cap { background: radial-gradient(circle, transparent 0 62%, rgba(30, 15, 0, 0.28) 63% 76%, transparent 77%); }

.cb-pc { position: absolute; left: 0; top: 0; width: 12.5%; height: 12.5%; display: grid; place-items: center; transition: transform .2s cubic-bezier(.25, .8, .25, 1); will-change: transform; z-index: 2; }
.cb-pc .pc { width: 94%; height: 94%; display: block; pointer-events: none; }
.cb-pc.is-moving { z-index: 4; transition-duration: .22s; }
.cb-pc.is-drag { transition: none; z-index: 9; }
.cb-pc.is-drag .pc { filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.35)); }
.cb-pc.is-drop { transition: none; }
.cb-pc.is-taken { transition: opacity .2s, transform .2s; opacity: 0; }
.pc-line { stroke-width: .9; opacity: .55; }
.pc-w .pc-line, .pc-w .pc-cut { stroke: #6d5032; }
.pc-b .pc-line, .pc-b .pc-cut { stroke: #c9a676; }
.pc-cut { stroke-width: 1.2; }
.pc-w .pc-eye { fill: #3b2a1a; } .pc-b .pc-eye { fill: #e6cc9e; }
.pc-gloss { opacity: .8; }

.cb-arrows { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 6; }
.cb-arrow { stroke: rgba(230, 150, 40, 0.86); stroke-width: 20; stroke-linecap: round; animation: cb-arrow .4s ease both; }
@keyframes cb-arrow { from { opacity: 0; } to { opacity: 1; } }
.cb-promo { position: absolute; inset: 0; z-index: 10; }
.cb-promo-back { position: absolute; inset: 0; background: rgba(20, 12, 5, 0.45); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.cb-promo-col { position: absolute; width: 12.5%; display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; background: #fbf6ec; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5); animation: cb-pop .2s ease both; }
.cb-promo-col button { aspect-ratio: 1; border: 0; background: transparent; padding: 6%; cursor: pointer; }
.cb-promo-col button:active, .cb-promo-col button:hover { background: #f1e2c4; }
.cb-promo-col .pc { width: 100%; height: 100%; }
@keyframes cb-pop { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
.cb-board.is-review { filter: saturate(.85); }
.cb-board.is-review::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px rgba(227, 173, 84, .9); border-radius: 6px; pointer-events: none; z-index: 8; }

/* ---------- the game screen ---------- */
html.ch-on .tabbar { display: none; }
html.ch-on .main { padding-bottom: 0; }
.ch-page { max-width: 1120px; margin: 0 auto; padding: 0 12px calc(18px + env(safe-area-inset-bottom, 0px)); }
.ch-top { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: 50px; }
.ch-back, .ch-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: transparent; border: 0; cursor: pointer; text-decoration: none; }
.ch-back:active, .ch-icon:active { background: var(--raised); }
.ch-title { text-align: center; font: 600 16px var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-play { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.ch-evalwrap { position: relative; width: min(100%, 640px, calc(100svh - 300px)); min-width: min(100%, 300px); }
.ch-col { display: flex; flex-direction: column; gap: 8px; }
.ch-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 0 2px; }
.ch-who { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.ch-av { flex: none; width: 38px; height: 38px; display: grid; place-items: center; }
.ch-who.is-turn .ch-av { filter: drop-shadow(0 0 6px rgba(227, 173, 84, .8)); }
.ch-bot { width: 38px; height: 38px; display: block; border-radius: 50%; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.ch-side-dot { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--raised); box-shadow: 0 0 0 1px var(--line); }
.ch-side-dot .pc { width: 30px; height: 30px; }
.ch-empty-av { width: 38px; height: 38px; border-radius: 50%; display: block; border: 2px dashed var(--line); }
.ch-name { min-width: 0; display: flex; flex-direction: column; }
.ch-name b { font: 700 15px var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-name small { font-size: 12.5px; color: var(--muted); }
.ch-think { display: inline-flex; gap: 3px; margin-left: 2px; }
.ch-think i { width: 6px; height: 6px; border-radius: 50%; background: var(--lamp); animation: ch-dot 1s infinite ease-in-out; }
.ch-think i:nth-child(2) { animation-delay: .15s; } .ch-think i:nth-child(3) { animation-delay: .3s; }
@keyframes ch-dot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.ch-taken { display: inline-flex; align-items: center; margin-left: auto; padding-left: 4px; min-width: 0; overflow: hidden; }
.ch-tk { width: 18px; height: 18px; margin-left: -7px; display: block; }
.ch-tk:first-child { margin-left: 0; }
.ch-tk .pc { width: 100%; height: 100%; }
.ch-taken b { margin-left: 4px; font: 700 12px var(--body); color: var(--muted); }
.ch-clock { flex: none; min-width: 78px; text-align: center; padding: 8px 12px; border-radius: 12px; font: 700 20px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .02em; background: var(--raised); color: var(--muted); box-shadow: 0 0 0 1px var(--line); transition: background .2s, color .2s; }
.ch-clock.is-on { background: #1f1912; color: #fff4dc; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .5); }
:root[data-theme="dark"] .ch-clock.is-on { background: #fbf6ec; color: #1f1912; }
.ch-clock.is-low { background: #c62f2f !important; color: #fff !important; animation: ch-low 1s infinite; }
@keyframes ch-low { 50% { filter: brightness(1.2); } }
.ch-eval { position: absolute; left: 1px; top: 64px; bottom: 64px; width: 5px; border-radius: 3px; background: #2a1c0f; overflow: hidden; z-index: 3; }
.ch-eval i { position: absolute; left: 0; right: 0; bottom: 0; background: #fbf6ec; transition: height .5s ease; }
.ch-eval.is-flip i { bottom: auto; top: 0; }
.ch-eval span { display: none; }
.ch-side { width: min(100%, 640px); display: flex; flex-direction: column; gap: 10px; }
.ch-moves { display: flex; align-items: center; gap: 2px; overflow-x: auto; white-space: nowrap; padding: 8px 10px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); scrollbar-width: none; min-height: 44px; }
.ch-moves::-webkit-scrollbar { display: none; }
.ch-moves-empty { color: var(--muted); font-size: 13.5px; }
.ch-mn { color: var(--muted); font: 600 12.5px var(--body); margin: 0 2px 0 6px; }
.ch-mv { border: 0; background: transparent; color: var(--ink); font: 600 14.5px var(--body); padding: 5px 7px; border-radius: 8px; cursor: pointer; }
.ch-mv.is-on { background: var(--lamp); color: var(--lamp-ink); }
.ch-fig { font-style: normal; font-size: 1.15em; margin-right: 1px; font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols 2", serif; }
.ch-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.ch-tool { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 62px; border-radius: 16px; border: 0; background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); font: 600 12px var(--body); cursor: pointer; text-decoration: none; transition: transform .1s; }
.ch-tool:active { transform: scale(.96); }
.ch-tool[disabled] { opacity: .4; }
.ch-tool.is-go { background: var(--lamp); color: var(--lamp-ink); box-shadow: none; }
.ch-tool.is-on { box-shadow: 0 0 0 2px var(--lamp); }
.ch-note { min-height: 20px; text-align: center; color: var(--muted); font-size: 14px; }
.ch-join { position: absolute; inset: 9px; display: grid; place-items: center; z-index: 12; background: rgba(20, 12, 5, .35); border-radius: 6px; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.ch-join-in { display: flex; flex-direction: column; align-items: center; gap: 6px; width: min(82%, 300px); padding: 22px 20px; border-radius: 24px; background: rgba(251, 246, 236, .96); color: #1f1912; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); text-align: center; animation: cb-pop .3s ease both; }
.ch-join-in b { font: 500 26px var(--display); }
.ch-join-in p { margin: 0; color: #6b5c48; }
.ch-join-tc { font: 600 13.5px var(--body); color: #8a6a3a; margin-bottom: 8px; }

@media (min-width: 900px) {
  .ch-play { flex-direction: row; align-items: flex-start; justify-content: center; gap: 26px; padding-top: 6px; }
  .ch-evalwrap { width: min(640px, calc(100vh - 300px)); width: min(640px, calc(100dvh - 300px)); min-width: 380px; }
  .ch-side { width: 330px; margin-top: 54px; }
  .ch-moves { display: grid; grid-template-columns: 34px 1fr 1fr; align-items: stretch; white-space: normal; max-height: 360px; overflow-y: auto; gap: 2px 4px; padding: 10px; }
  .ch-mn { align-self: center; margin: 0; }
  .ch-mv { text-align: left; }
  .ch-moves-empty { grid-column: 1 / -1; }
  .ch-eval { left: -14px; width: 8px; top: 64px; bottom: 64px; }
}

/* ---------- the end of a game ---------- */
.ch-over { text-align: center; }
.ch-over-art { font-size: 64px; line-height: 1; margin: 6px auto 8px; width: 84px; height: 84px; display: grid; place-items: center; }
.ch-over-art .pc { width: 84px; height: 84px; transform: rotate(-82deg) translateY(6px); }
.ch-over h2 { padding: 0 !important; font-size: 34px !important; }
.ch-over.is-won h2 { background: linear-gradient(90deg, #c98a2c, #f6d58f, #c98a2c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ch-over-go { display: grid; gap: 10px; margin-top: 18px; }
.ch-over-go .btn { height: 52px; }
.ch-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 2000; overflow: hidden; }
.ch-confetti i { position: absolute; top: -20px; width: 8px; height: 14px; border-radius: 2px; animation: ch-fall linear forwards; }
@keyframes ch-fall { to { top: 110vh; transform: translateX(40px) rotate(720deg); } }

/* ---------- the chess page ---------- */
.ch-hub { max-width: 720px; margin: 0 auto; padding: 4px 16px 120px; display: flex; flex-direction: column; gap: 16px; }
.ch-hero { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px; border-radius: 28px; color: #f4eee2;
  background: radial-gradient(90% 120% at 0% 0%, rgba(227, 173, 84, .35), transparent 60%), linear-gradient(150deg, #3d2817, #1d140d); box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .6); overflow: hidden; }
.ch-hero-board .ch-boardwrap, .ch-hero-board > .cb-board { pointer-events: none; }
.ch-hero-board { border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 5px #4a2c15, 0 0 0 6px #2f1b0c, 0 14px 30px rgba(0, 0, 0, .5); transform: rotate(-4deg); }
.ch-hero-board .cb-sq i { display: none; }
.ch-k { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #e3ad54; }
.ch-k-pad { margin: 18px 0 10px; color: var(--muted); }
.ch-hero h1 { font: 400 28px/1.08 var(--display); margin: 6px 0 8px; overflow-wrap: break-word; }
.ch-hero > div { min-width: 0; }
html[lang=hy] .ch-hero h1, html[lang=ru] .ch-hero h1 { font-size: 23px; }
html[lang=hy] .ch-hero .muted, html[lang=ru] .ch-hero .muted { font-size: 13.5px; }
.ch-hero .muted { color: rgba(244, 238, 226, .74); margin: 0; font-size: 14.5px; }
.ch-continue { display: grid; grid-template-columns: 48px 1fr 24px; gap: 14px; align-items: center; padding: 14px 16px; border: 0; border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1.5px var(--lamp), 0 12px 30px -18px rgba(227, 173, 84, .8); text-align: left; cursor: pointer; }
.ch-continue-av { width: 48px; height: 48px; display: block; }
.ch-continue-t { display: flex; flex-direction: column; min-width: 0; }
.ch-continue-t small { font: 800 11px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--lamp); }
.ch-continue-t b { font-size: 16px; }
.ch-continue-t > span { color: var(--muted); font-size: 13px; }
.ch-continue-go { transform: rotate(180deg); color: var(--muted); }
.ch-modes { display: grid; gap: 12px; }
.ch-mode { display: grid; grid-template-columns: 58px 1fr; gap: 14px; align-items: center; padding: 16px; border: 0; border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); text-align: left; cursor: pointer; transition: transform .12s; }
.ch-mode:active { transform: scale(.985); }
.ch-mode-ic { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(150deg, #3d2817, #1d140d); color: #f6d58f; overflow: hidden; }
.ch-mode.is-bot .ch-mode-ic { background: none; }
.ch-mode.is-bot .ch-mode-ic svg { width: 58px; height: 58px; }
.ch-mode-t b { display: block; font: 700 17px var(--body); margin-bottom: 3px; }
.ch-mode-t small { color: var(--muted); font-size: 13.5px; line-height: 1.35; }
.ch-games h2 { font: 400 24px var(--display); margin: 10px 2px 10px; }
.ch-grow { display: grid; grid-template-columns: 40px 1fr 56px; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 18px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; margin-bottom: 8px; }
.ch-grow.is-turn { box-shadow: 0 0 0 1.5px var(--lamp); }
.ch-grow-t { display: flex; flex-direction: column; min-width: 0; }
.ch-grow-t b { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-grow-t small { color: var(--muted); font-size: 13px; }
.ch-grow.is-turn .ch-grow-t small span:last-child { color: var(--lamp); font-weight: 700; }
.ch-mini { display: grid; grid-template-columns: repeat(8, 1fr); width: 56px; height: 56px; border-radius: 5px; overflow: hidden; box-shadow: 0 0 0 2px #4a2c15; }
.ch-mini i { display: grid; place-items: center; font-style: normal; }
.ch-mini i.l { background: #ecd2a6; } .ch-mini i.d { background: #a8744a; }
.ch-mini b { font-size: 6.4px; line-height: 1; }
.ch-mini b.c-w { color: #fff; text-shadow: 0 0 1px #000, 0 0 1px #000; } .ch-mini b.c-b { color: #1a120c; }

/* ---------- sheets ---------- */
.ch-sheet h2 { margin-bottom: 14px; }
.ch-levels { display: grid; gap: 6px; max-height: 46vh; overflow-y: auto; margin: 0 -4px; padding: 2px 4px; }
.ch-level { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 16px; border: 0; background: var(--raised); color: var(--ink); text-align: left; cursor: pointer; box-shadow: 0 0 0 1px var(--line); }
.ch-level.is-on { box-shadow: 0 0 0 2px var(--lamp); background: color-mix(in srgb, var(--lamp) 12%, var(--raised)); }
.ch-level-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 800 15px var(--body); background: linear-gradient(150deg, #f6d58f, #b9792f); color: #2a1c05; }
.ch-level-t b { display: block; font-size: 15.5px; }
.ch-level-t small { color: var(--muted); font-size: 12.5px; }
.ch-level-elo { font: 700 13px var(--body); color: var(--muted); }
.ch-colors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ch-color { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 16px; border: 0; background: var(--raised); color: var(--ink); box-shadow: 0 0 0 1px var(--line); cursor: pointer; font: 600 13px var(--body); }
.ch-color.is-on { box-shadow: 0 0 0 2px var(--lamp); }
.ch-color-pc { width: 46px; height: 46px; display: grid; place-items: center; }
.ch-color-pc .pc { width: 46px; height: 46px; }
.ch-half { position: relative; width: 46px; height: 46px; display: block; }
.ch-half .pc { position: absolute; inset: 0; }
.ch-half .pc:last-child { clip-path: inset(0 0 0 50%); }
.ch-half .pc:first-child { clip-path: inset(0 50% 0 0); }
.ch-times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ch-time { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 60px; border-radius: 14px; border: 0; background: var(--raised); color: var(--ink); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.ch-time b { font: 700 15px var(--body); } .ch-time small { font-size: 11.5px; color: var(--muted); }
.ch-time.is-on { box-shadow: 0 0 0 2px var(--lamp); }
.ch-friends { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; }
.ch-friends::-webkit-scrollbar { display: none; }
.ch-friend { flex: none; width: 66px; display: flex; flex-direction: column; align-items: center; gap: 5px; border: 0; background: none; color: var(--ink); cursor: pointer; padding: 4px 0; border-radius: 14px; }
.ch-friend small { font-size: 12px; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-friend .av { box-shadow: 0 0 0 2px transparent; }
.ch-friend.is-on .av, .ch-friend.is-on .ch-friend-link { box-shadow: 0 0 0 3px var(--lamp); }
.ch-friend-link { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--raised); box-shadow: 0 0 0 1px var(--line); }
.ch-go { margin-top: 18px; height: 54px; font-size: 17px; }
.ch-themes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.ch-theme { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; color: var(--ink); cursor: pointer; font: 600 11.5px var(--body); }
.ch-theme > span { display: grid; grid-template-columns: 1fr 1fr; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.ch-theme > span i:nth-child(1), .ch-theme > span i:nth-child(4) { background: var(--l); }
.ch-theme > span i:nth-child(2), .ch-theme > span i:nth-child(3) { background: var(--d); }
.ch-theme.is-on > span { box-shadow: 0 0 0 3px var(--lamp); }
.ch-opts { display: grid; gap: 4px; margin-top: 16px; }
.ch-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--line); font-size: 15px; }
@media (max-width: 560px) {
  .ch-hero { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 26px 22px 24px; }
  .ch-hero-board { width: min(230px, 72%); justify-self: center; margin-top: 6px; }
  .ch-hero h1, html[lang=hy] .ch-hero h1, html[lang=ru] .ch-hero h1 { font-size: 27px; }
  html[lang=hy] .ch-hero .muted, html[lang=ru] .ch-hero .muted { font-size: 14.5px; }
}
@media (max-width: 380px) { .ch-hero h1, html[lang=hy] .ch-hero h1, html[lang=ru] .ch-hero h1 { font-size: 24px; } .ch-times { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 899px) {
  html.ch-on #top-bar { display: none !important; }
  html.ch-on .ch-page { padding-top: env(safe-area-inset-top, 0px); }
}
