
/* Online Yacht Club portal theme: dark games portal (CrazyGames-inspired), light via toggle. */
:root{
  --oyc-accent:#b6f09c; --oyc-accent-ink:#14240c;
}
[data-bs-theme="dark"]{
  --oyc-bg:#0d0d17; --oyc-bg2:#12121f; --oyc-panel:#171728; --oyc-panel2:#1e1e33;
  --oyc-ink:#f1f2fa; --oyc-muted:#a5a7c4; --oyc-faint:#6d6f8f;
  --oyc-line:rgba(255,255,255,.09); --oyc-line2:rgba(255,255,255,.16);
  --oyc-shadow:0 18px 44px -18px rgba(0,0,0,.75);
  --oyc-pill:#262640; --oyc-side:#10101c;
}
[data-bs-theme="light"]{
  --oyc-bg:#faf9f6; --oyc-bg2:#f4f2ed; --oyc-panel:#ffffff; --oyc-panel2:#f7f5f0;
  --oyc-ink:#15151f; --oyc-muted:#565873; --oyc-faint:#8b8da6;
  --oyc-line:rgba(18,18,40,.10); --oyc-line2:rgba(18,18,40,.18);
  --oyc-shadow:0 18px 40px -20px rgba(23,23,60,.28);
  --oyc-pill:#ffffff; --oyc-side:#ffffff;
}
html{scroll-behavior:smooth}
body.oyc{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,"Helvetica Neue",Arial,sans-serif;background:var(--oyc-bg);color:var(--oyc-ink);margin:0;-webkit-font-smoothing:antialiased;line-height:1.6}
body.oyc::before{content:"";position:fixed;inset:0;background:radial-gradient(52rem 26rem at 85% -6rem,rgba(99,102,241,.16),transparent 60%),radial-gradient(40rem 22rem at -10% 110%,rgba(14,165,233,.12),transparent 60%);pointer-events:none;z-index:0}
.oyc a{color:inherit}
.oyc :focus-visible{outline:2px solid #38bdf8;outline-offset:2px;border-radius:6px}
.oyc h1,.oyc h2,.oyc h3{letter-spacing:-.02em;line-height:1.16;font-weight:750}
.oyc .muted{color:var(--oyc-muted)}
.brand img{border-radius:8px;box-shadow:0 0 0 1.5px rgba(139,148,163,.6),0 1px 4px rgba(0,0,0,.35)}
/* left icon sidebar */
.oyc-side{position:fixed;left:0;top:0;bottom:0;width:78px;background:var(--oyc-side);border-right:1px solid var(--oyc-line);z-index:120;display:flex;flex-direction:column;align-items:stretch;padding:.7rem .45rem;gap:.25rem;overflow:hidden;transition:width .22s ease}
.oyc-side:hover{width:216px;box-shadow:var(--oyc-shadow)}
.oyc-side a,.oyc-side button{display:flex;align-items:center;gap:.85rem;padding:.62rem .8rem;border-radius:.8rem;color:var(--oyc-muted);text-decoration:none;font-size:.94rem;font-weight:600;white-space:nowrap;background:none;border:0;cursor:pointer;font-family:inherit;text-align:left;width:100%}
.oyc-side a svg,.oyc-side button svg{width:1.35rem;height:1.35rem;flex:none}
.oyc-side a:hover,.oyc-side button:hover{color:var(--oyc-ink);background:var(--oyc-panel2)}
.oyc-side a.active{color:var(--oyc-ink);background:var(--oyc-panel2);box-shadow:inset 3px 0 0 #38bdf8}
.oyc-side .side-label{opacity:0;transition:opacity .15s}
.oyc-side:hover .side-label{opacity:1}
.oyc-side .side-brand{padding:.35rem .55rem .8rem;display:flex;align-items:center;gap:.7rem;text-decoration:none}
.oyc-side .side-brand img{width:34px;height:34px;border-radius:8px;flex:none}
.oyc-side .side-brand span{font-weight:800;font-size:.98rem;letter-spacing:-.01em;opacity:0;transition:opacity .15s}
.oyc-side:hover .side-brand span{opacity:1}
body.oyc{padding-left:78px}
/* top bar */
.oyc-top{position:sticky;top:0;z-index:110;display:flex;align-items:center;gap:1rem;padding:.65rem 1.1rem;background:color-mix(in srgb,var(--oyc-bg) 82%,transparent);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--oyc-line)}
.oyc-top .brand{display:none;align-items:center;gap:.55rem;font-weight:800;text-decoration:none;font-size:1rem}
.oyc-top .brand img{width:30px;height:30px}
.oyc-search{position:relative;flex:1;max-width:640px;margin:0 auto}
.oyc-search input{width:100%;padding:.72rem 2.9rem .72rem 1.25rem;border-radius:999px;border:1px solid var(--oyc-line2);background:var(--oyc-pill);color:var(--oyc-ink);font-size:1rem;font-family:inherit}
.oyc-search input::placeholder{color:var(--oyc-faint)}
.oyc-search input:focus{outline:2px solid #38bdf8;outline-offset:1px}
.oyc-search .sbtn{position:absolute;right:.35rem;top:50%;transform:translateY(-50%);width:2.15rem;height:2.15rem;border-radius:50%;border:0;background:var(--oyc-panel2);color:var(--oyc-ink);cursor:pointer;display:flex;align-items:center;justify-content:center}
.oyc-search .sbtn svg{width:1.05rem;height:1.05rem}
.oyc-results{position:absolute;left:0;right:0;top:calc(100% + .45rem);background:var(--oyc-panel);border:1px solid var(--oyc-line2);border-radius:1rem;box-shadow:var(--oyc-shadow);overflow:hidden;display:none;z-index:130}
.oyc-results.show{display:block}
.oyc-results a{display:flex;justify-content:space-between;gap:1rem;padding:.68rem 1.05rem;text-decoration:none;font-size:.95rem;border-bottom:1px solid var(--oyc-line)}
.oyc-results a:last-child{border-bottom:0}
.oyc-results a:hover{background:var(--oyc-panel2)}
.oyc-results .rtype{font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#38bdf8;flex:none;padding-top:.2rem}
.oyc-results .rnone{padding:.8rem 1.05rem;color:var(--oyc-muted);font-size:.93rem}
.btn-join{display:inline-flex;align-items:center;gap:.45rem;background:var(--oyc-accent);color:var(--oyc-accent-ink);font-weight:750;font-size:.95rem;padding:.66rem 1.25rem;border-radius:999px;text-decoration:none;border:0;white-space:nowrap;transition:transform .15s,filter .15s}
.btn-join:hover{transform:translateY(-1px);filter:brightness(1.05);color:var(--oyc-accent-ink)}
.iconbtn{display:inline-flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;border-radius:50%;border:1px solid var(--oyc-line2);background:var(--oyc-pill);color:var(--oyc-ink);cursor:pointer;flex:none}
.iconbtn svg{width:1.1rem;height:1.1rem}
html[data-bs-theme="dark"] .moon-i{display:none}
html[data-bs-theme="light"] .sun-i{display:none}
/* main layout */
.oyc-main{position:relative;z-index:1;max-width:1220px;margin:0 auto;padding:1.6rem 1.25rem 3rem}
.oyc-hero{padding:1.6rem 0 .6rem}
.oyc-hero h1{font-size:2.05rem;margin:.2rem 0 .7rem;max-width:22ch}
.oyc-hero .lede{color:var(--oyc-muted);font-size:1.08rem;max-width:44rem;margin:0}
.kicker{font-size:.74rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#38bdf8;margin:0 0 .4rem}
.sec-head{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;margin:2.4rem 0 1.1rem}
.sec-head h2{font-size:1.45rem;margin:0}
.sec-head a{font-size:.93rem;color:#38bdf8;text-decoration:none;font-weight:650}
/* category tiles */
.tiles{display:grid;grid-template-columns:repeat(6,1fr);gap:.8rem}
.tile{border-radius:1.05rem;padding:1rem .95rem .9rem;text-decoration:none;color:#fff;min-height:7.2rem;display:flex;flex-direction:column;justify-content:flex-end;gap:.45rem;position:relative;overflow:hidden;transition:transform .16s ease}
.tile:hover{transform:translateY(-3px);color:#fff}
.tile svg{width:2rem;height:2rem;position:absolute;top:.85rem;right:.85rem;opacity:.92}
.tile b{font-size:1.02rem;letter-spacing:-.01em}
.tile span{font-size:.8rem;opacity:.85}
.t-puzzle{background:linear-gradient(135deg,#0ea5e9,#2563eb)}
.t-racing{background:linear-gradient(135deg,#f43f5e,#f97316)}
.t-two{background:linear-gradient(135deg,#8b5cf6,#ec4899)}
.t-brain{background:linear-gradient(135deg,#059669,#0d9488)}
.t-quick{background:linear-gradient(135deg,#d97706,#f59e0b)}
.t-classic{background:linear-gradient(135deg,#475569,#0f766e)}
/* game cards */
.gcards{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.gcard{background:var(--oyc-panel);border:1px solid var(--oyc-line);border-radius:1.15rem;overflow:hidden;text-decoration:none;display:flex;flex-direction:column;transition:transform .16s ease,border-color .16s}
.gcard:hover{transform:translateY(-3px);border-color:var(--oyc-line2);color:inherit}
.gcard .thumb{display:block;aspect-ratio:16/9;position:relative}
.gcard .thumb svg{position:absolute;inset:0;width:100%;height:100%}
.gcard .gbody{padding:.95rem 1.05rem 1.1rem;display:flex;flex-direction:column;gap:.45rem;flex:1}
.gcard h3{font-size:1.12rem;margin:0}
.gcard p{margin:0;color:var(--oyc-muted);font-size:.92rem;flex:1}
.gcard.big{grid-column:span 2}
.gcard.big .thumb{aspect-ratio:16/7.4}
.tags{display:flex;flex-wrap:wrap;gap:.4rem}
.tag{font-size:.72rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;padding:.28rem .6rem;border-radius:999px;background:var(--oyc-panel2);color:var(--oyc-muted);border:1px solid var(--oyc-line)}
.tag.hot{color:#fda4af;border-color:rgba(244,63,94,.4)}
/* article rows */
.art-list{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}
.art-card{background:var(--oyc-panel);border:1px solid var(--oyc-line);border-radius:1.05rem;padding:1.15rem 1.25rem;text-decoration:none;display:block;transition:transform .16s,border-color .16s}
.art-card:hover{transform:translateY(-2px);border-color:var(--oyc-line2);color:inherit}
.art-card h3{font-size:1.08rem;margin:.15rem 0 .45rem}
.art-card p{margin:0;color:var(--oyc-muted);font-size:.93rem}
.art-card .adate{font-size:.78rem;color:var(--oyc-faint);font-weight:650;letter-spacing:.06em;text-transform:uppercase}
/* charter strip */
.charter-strip{margin-top:2.6rem;background:linear-gradient(120deg,#123a5c,#0d2a44 55%,#123a5c);border:1px solid rgba(125,211,252,.25);border-radius:1.25rem;padding:1.6rem 1.7rem;color:#eaf4fd;display:grid;grid-template-columns:auto 1fr auto;gap:1.4rem;align-items:center}
.charter-strip img{width:64px;height:64px;border-radius:14px}
.charter-strip h2{font-size:1.3rem;margin:.1rem 0 .35rem;color:#fff}
.charter-strip p{margin:0;color:#b9d4ea;font-size:.96rem;max-width:38rem}
.btn-light{display:inline-flex;background:#f8fafc;color:#0d2a44;font-weight:750;padding:.7rem 1.3rem;border-radius:999px;text-decoration:none;white-space:nowrap}
.btn-light:hover{color:#0d2a44;filter:brightness(1.05)}
/* game page */
.player-wrap{background:var(--oyc-panel);border:1px solid var(--oyc-line);border-radius:1.25rem;padding:1.1rem;box-shadow:var(--oyc-shadow)}
.player-bar{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;justify-content:space-between;margin-bottom:.9rem}
.player-bar .pstats{display:flex;gap:1.1rem;flex-wrap:wrap;font-size:.95rem;color:var(--oyc-muted)}
.player-bar .pstats b{color:var(--oyc-ink);font-variant-numeric:tabular-nums}
.btn-play{background:#38bdf8;color:#082f49;font-weight:750;border:0;padding:.62rem 1.35rem;border-radius:999px;cursor:pointer;font-size:.97rem;font-family:inherit;text-decoration:none;display:inline-block}
.btn-play:hover{filter:brightness(1.08)}
.btn-ghost{background:var(--oyc-panel2);color:var(--oyc-ink);border:1px solid var(--oyc-line2);font-weight:650;padding:.6rem 1.1rem;border-radius:999px;cursor:pointer;font-size:.93rem;font-family:inherit}
select.oyc-select{background:var(--oyc-panel2);color:var(--oyc-ink);border:1px solid var(--oyc-line2);border-radius:.7rem;padding:.55rem .8rem;font-family:inherit;font-size:.95rem}
.game-status{margin:.85rem 0 0;color:var(--oyc-muted);font-size:.98rem;min-height:1.5em}
.game-status b{color:var(--oyc-ink)}
canvas.game-canvas{display:block;width:100%;height:auto;border-radius:.9rem;background:#082741;touch-action:none}
.touch-row{display:none;gap:.6rem;justify-content:center;margin-top:.9rem;flex-wrap:wrap}
.touch-row button{width:3.6rem;height:3.6rem;border-radius:1rem;border:1px solid var(--oyc-line2);background:var(--oyc-panel2);color:var(--oyc-ink);cursor:pointer;display:flex;align-items:center;justify-content:center}
.touch-row button svg{width:1.5rem;height:1.5rem}
@media (pointer:coarse){.touch-row{display:flex}}
.prose{max-width:46rem}
.prose h2{font-size:1.35rem;margin:2rem 0 .6rem}
.prose p{color:var(--oyc-muted)}
.prose p b,.prose li b{color:var(--oyc-ink)}
.prose ul{color:var(--oyc-muted);padding-left:1.2rem}
.prose li{margin:.3rem 0}
/* tic tac toe */
.ttt-board{display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem;max-width:380px;margin:0 auto}
.ttt-cell{aspect-ratio:1;border-radius:1rem;border:1px solid var(--oyc-line2);background:var(--oyc-panel2);cursor:pointer;display:flex;align-items:center;justify-content:center;padding:14%}
.ttt-cell svg{width:100%;height:100%}
.ttt-cell:hover:not(:disabled){border-color:#38bdf8}
.ttt-cell.win{background:rgba(34,197,94,.22);border-color:#22c55e}
.ttt-cell:disabled{cursor:default}
/* pairs */
.pairs-grid{display:grid;gap:.6rem;max-width:520px;margin:0 auto}
.pairs-grid.grid-3{grid-template-columns:repeat(4,1fr)}
.pairs-grid.grid-4{grid-template-columns:repeat(4,1fr)}
.pair-card{aspect-ratio:1;border-radius:.95rem;border:1px solid var(--oyc-line2);background:linear-gradient(145deg,#164e7e,#0b3556);cursor:pointer;position:relative;padding:16%}
.pair-card .pair-face{display:none}
.pair-card .pair-back{display:block;opacity:.5}
.pair-card svg{width:100%;height:100%}
.pair-card.flipped,.pair-card.matched{background:var(--oyc-panel2)}
.pair-card.flipped .pair-face,.pair-card.matched .pair-face{display:block}
.pair-card.flipped .pair-back,.pair-card.matched .pair-back{display:none}
.pair-card.matched{border-color:#22c55e;cursor:default}
/* footer */
.oyc-foot{border-top:1px solid var(--oyc-line);margin-top:3.5rem;padding:2.2rem 0 2.6rem;position:relative;z-index:1}
.oyc-foot .wrap{max-width:1220px;margin:0 auto;padding:0 1.25rem;display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:2rem}
.oyc-foot h4{font-size:.78rem;text-transform:uppercase;letter-spacing:.1em;color:var(--oyc-faint);margin:0 0 .8rem}
.oyc-foot a.flink{display:block;color:var(--oyc-muted);text-decoration:none;padding:.24rem 0;font-size:.94rem}
.oyc-foot a.flink:hover{color:var(--oyc-ink)}
.oyc-foot .fine{color:var(--oyc-faint);font-size:.85rem;margin-top:1.6rem}
/* search page */
.search-big{max-width:680px;margin:1rem auto 1.6rem;position:relative}
.search-big input{width:100%;padding:1rem 1.4rem;border-radius:999px;border:1px solid var(--oyc-line2);background:var(--oyc-pill);color:var(--oyc-ink);font-size:1.12rem;font-family:inherit}
.sr-item{display:flex;justify-content:space-between;gap:1rem;background:var(--oyc-panel);border:1px solid var(--oyc-line);border-radius:1rem;padding:1rem 1.2rem;margin-bottom:.7rem;text-decoration:none}
.sr-item:hover{border-color:var(--oyc-line2);color:inherit}
.sr-item h3{font-size:1.05rem;margin:0 0 .25rem}
.sr-item p{margin:0;color:var(--oyc-muted);font-size:.92rem}
@media (max-width:900px){.tiles{grid-template-columns:repeat(3,1fr)}.gcards{grid-template-columns:repeat(2,1fr)}.gcard.big{grid-column:span 2}.art-list{grid-template-columns:1fr}.charter-strip{grid-template-columns:1fr;text-align:left}.charter-strip img{display:none}}
@media (max-width:640px){
  body.oyc{padding-left:0;padding-top:52px}
  .oyc-side{left:0;right:0;top:auto;bottom:auto;width:auto;height:52px;flex-direction:row;align-items:center;padding:.3rem .5rem;overflow-x:auto;overflow-y:hidden;border-right:0;border-bottom:1px solid var(--oyc-line);top:0}
  .oyc-side:hover{width:auto}
  .oyc-side .side-brand{padding:.2rem .3rem}
  .oyc-side .side-brand img{width:28px;height:28px}
  .oyc-side .side-label,.oyc-side .side-brand span{display:none}
  .oyc-side a,.oyc-side button{padding:.5rem .55rem}
  .oyc-top{top:52px;padding:.55rem .7rem}
  .oyc-top .brand{display:inline-flex}
  .btn-join{padding:.55rem .9rem;font-size:.88rem}
  .tiles{grid-template-columns:repeat(2,1fr)}
  .gcards{grid-template-columns:1fr}
  .gcard.big{grid-column:span 1}
  .oyc-foot .wrap{grid-template-columns:1fr}
  .oyc-hero h1{font-size:1.75rem}
}

.post-item{padding:1.05rem 0;border-bottom:1px solid var(--line)}
.post-title{font-size:1.22rem;margin:0 0 .3rem}
.post-title a{color:var(--ink);text-decoration:none}
.post-title a:hover{color:var(--accent)}
.post-num{color:var(--accent);font-weight:800;margin-right:.35rem}
.post-meta{color:var(--muted);font-size:.88rem}
.bp-row{display:flex;justify-content:space-between;gap:1rem;margin-top:1.4rem}
.art-wrap{max-width:820px;margin:0 auto}
.art-meta{color:var(--muted);margin:.4rem 0 1.2rem}
.article-body{font-size:1.05rem;line-height:1.75}
.article-body p{margin:0 0 1.05rem}
.article-body h2{font-size:1.45rem;margin:1.8rem 0 .7rem}
.article-body ul{margin:0 0 1.1rem}
.article-body li{margin-bottom:.45rem}
.tblwrap{overflow-x:auto;margin:1.2rem 0 .4rem}
.otable{width:100%;border-collapse:collapse;font-size:.95rem}
.otable th,.otable td{border:1px solid var(--line);padding:.5rem .65rem;text-align:left;vertical-align:top}
.otable th{background:var(--panel2);font-weight:700}
.tblcap{color:var(--muted);font-size:.87rem;margin:.3rem 0 1.2rem}
.chart{margin:1.2rem 0;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:1rem 1.1rem}
.chart figcaption{font-weight:700;margin-bottom:.5rem}
.chart svg{width:100%;height:auto}
.chart text{fill:var(--ink);font-size:13.5px}
.ct-val{font-weight:700}
.tagrow{display:flex;flex-wrap:wrap;gap:.45rem;margin:1.6rem 0}
.relatedbox{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:1.1rem 1.2rem;margin:1.4rem 0}
.relatedbox h2{font-size:1.1rem;margin-top:0}
.relatedbox ul{margin:0;padding-left:1.1rem}
.pager{display:flex;justify-content:space-between;gap:1rem;margin:1.6rem 0 .5rem;flex-wrap:wrap}
.pager a{color:var(--accent);text-decoration:none;font-weight:600}
.playband{background:linear-gradient(120deg,#123a6b,#0ea5e9);border-radius:16px;padding:1.2rem 1.3rem;margin:1.6rem 0;color:#fff}
.playband h2{color:#fff;margin:0 0 .4rem;font-size:1.25rem}
.playband p{margin:0 0 .8rem;color:#e0f2fe}
.playband a.btn-play{background:#fff;color:#0b2447}
.formwrap{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:1.3rem}
.formwrap label{font-weight:600;display:block;margin:.8rem 0 .3rem}
.formwrap input,.formwrap textarea{width:100%;background:var(--panel2);border:1px solid var(--line);border-radius:10px;color:var(--ink);padding:.6rem .8rem}
.formwrap button{margin-top:1rem;background:var(--accent);border:none;color:#08130a;font-weight:800;border-radius:999px;padding:.6rem 1.4rem}
