@font-face{font-family:CTPieces;src:url(pieces.ttf) format("truetype");font-display:swap}
.ct-house-page #ctclock-promo{display:none}
#ct-house{--paper:#171921;--panel:#20232e;--edge:#3a3c4b;--ink:#f6f3ea;--soft:#bdbbc6;--gold:#eac375;max-width:1180px;margin:1.25rem auto 3rem;border:1px solid var(--edge);border-radius:18px;background:var(--paper);color:var(--ink);font:16px/1.55 system-ui,-apple-system,sans-serif;text-align:left;overflow:hidden;box-shadow:0 16px 48px #0003}
#ct-house *{box-sizing:border-box}#ct-house :is(h1,h2,h3,p){color:inherit;text-transform:none;letter-spacing:normal}#ct-house h1{font:600 clamp(2.4rem,6.8vw,4.8rem)/1.03 Georgia,serif;margin:.2em 0}#ct-house h2{font:600 clamp(1.2rem,3vw,1.58rem)/1.2 Georgia,serif;margin:0 0 .65rem}#ct-house p{margin:.4em 0 1em}#ct-house a{color:var(--gold);text-decoration:none}#ct-house a:hover{text-decoration:underline}
#ct-house .ct-head{display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--edge);padding:.8rem clamp(.8rem,3.8vw,2.4rem)}#ct-house .ct-brand{display:flex;align-items:center;gap:.5rem;font:700 .78rem/1 system-ui;letter-spacing:.14em;color:var(--ink)}.ct-brand span{color:var(--gold);font:30px CTPieces,serif}#ct-house nav{display:flex;gap:clamp(7px,2vw,22px);align-items:center}#ct-house nav a{color:var(--soft);font-size:.84rem}#ct-house nav a.current{color:var(--gold)}
#ct-house .ct-main{padding:clamp(16px,3.8vw,42px)}#ct-house .ct-kicker{color:var(--gold);font-size:.76rem;font-weight:700;letter-spacing:.15em;text-transform:uppercase}#ct-house .ct-hero{display:grid;grid-template-columns:1.25fr .75fr;align-items:center;gap:20px;padding:16px 0 28px}.ct-hero p{max-width:38em}.ct-hero-board{width:min(235px,100%);justify-self:center;transform:rotate(-6deg);box-shadow:9px 11px #0f1117;border:5px solid #4e4c49;border-radius:5px;overflow:hidden}.ct-hero-emblem{justify-self:center;color:var(--gold);font:clamp(90px,15vw,170px)/1 CTPieces,serif}
#ct-house .ct-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}#ct-house .ct-grid.social{grid-template-columns:minmax(0,1.55fr) minmax(0,1fr)}#ct-house .ct-panel{padding:clamp(15px,2.4vw,25px);background:var(--panel);border:1px solid var(--edge);border-radius:14px;min-width:0;margin:0 0 14px}#ct-house .ct-sub,#ct-house small{color:var(--soft)}#ct-house small{font-size:.81rem}#ct-house .ct-actions,.ct-filters{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:.7rem 0}.ct-filters label{flex:1;min-width:110px}
#ct-house button:not(.ct-square),#ct-house .ct-btn{font:650 .88rem/1.25 system-ui;letter-spacing:normal;text-transform:none;min-height:42px;border:1px solid #555565;border-radius:8px;background:#30323f;color:var(--ink);padding:.65rem .94rem;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;margin:0 4px 3px 0;box-shadow:none}
#ct-house button.gold,#ct-house .ct-btn:not(.secondary){background:var(--gold);color:#211c16;border-color:var(--gold)}#ct-house button.plain{border:0;background:transparent;color:var(--gold);font-size:.8rem}#ct-house button:disabled{opacity:.6;cursor:wait}#ct-house button:focus-visible,#ct-house a:focus-visible,#ct-house input:focus-visible,#ct-house select:focus-visible{outline:3px solid #6fd6ff;outline-offset:-2px}
#ct-house label{display:grid;gap:.3rem;font-size:.83rem;color:var(--soft);margin:0 0 .7rem}#ct-house input:not([type=checkbox]),#ct-house select,#ct-house textarea{color:var(--ink);background:#13151d;border:1px solid #545461;border-radius:7px;padding:.6rem .7rem;min-height:41px;max-width:100%;width:100%;font:normal .95rem/1.4 system-ui}#ct-house textarea{resize:vertical}#ct-house .ct-check{display:flex;flex-direction:row;align-items:center;gap:.6rem}#ct-house .ct-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}#ct-house details{margin:.7rem 0}#ct-house summary{color:var(--gold);cursor:pointer}
#ct-house .ct-notice,#ct-house .ct-msg:not(:empty){padding:.65rem .9rem;border-left:3px solid var(--gold);background:#302b22;margin:0 0 15px}#ct-house .ct-msg.bad{border-color:#fa8878}#ct-house .ct-loading{padding:3rem}#ct-house .ct-breadcrumb{color:var(--soft);font-size:.85rem;margin-bottom:1.2rem}#ct-house .ct-settings{max-width:570px}
#ct-house .ct-game{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(205px,.8fr);gap:20px;align-items:start}#ct-house .ct-board {
  --tile-edge: inset 1px 1px 0 #ffffff2e, inset -1px -1px 0 #12162240;
  position:relative; display:grid; grid-template-columns:repeat(8,minmax(0,1fr));
  grid-template-rows:repeat(8,minmax(0,1fr)); width:100%; aspect-ratio:1;
  padding:clamp(3px,.7vw,6px); overflow:hidden; isolation:isolate; border-radius:6px;
  background:linear-gradient(135deg,#fff3c4 0%,#d4a843 30%,#8a6a1f 64%,#dfbc65 94%,#f8e8ae);
  box-shadow:inset 0 1px 0 #fff6d7,0 2px 0 #6b521d,0 5px 0 #392d17,0 9px 15px -4px #05070bcc;
  user-select:none;
}
#ct-house .ct-square {
  position:relative; display:grid; place-items:center; min-width:0; min-height:0; width:100%; height:100%;
  border:0!important; border-radius:0; margin:0; padding:0; max-width:none;
  line-height:1; touch-action:manipulation; box-shadow:var(--tile-edge);
}
#ct-house .ct-square.light {background:linear-gradient(139deg,#d0c4a9 0%,#beb399 37%,#b3a68a 68%,#a09377 100%)}
#ct-house .ct-square.dark {background:linear-gradient(139deg,#67768b 0%,#535f73 39%,#485365 65%,#3b4556 100%)}
#ct-house .ct-square.last {box-shadow:inset 0 0 0 2px #f7cf6a,var(--tile-edge)}
#ct-house .ct-square.last::before,#ct-house .ct-square.selected::before {
  content:""; position:absolute; inset:0; background:#ffe09226; pointer-events:none;
}
#ct-house .ct-square.selected {box-shadow:inset 0 0 0 3px #ffe385}
#ct-house .ct-square.selected::before {background:#ffe3964a}
#ct-house .ct-piece {
  display:block; width:99%; height:99%; max-width:none; margin:0; padding:0; object-fit:contain;
  position:relative; z-index:1; border:0; box-shadow:none; background:none; pointer-events:auto;
  filter:drop-shadow(0 1.6px 1px #080c1280);
}
#ct-house .ct-square.selected .ct-piece {transform:translateY(-3%);filter:drop-shadow(0 3px 1.4px #0a101993)}
#ct-house .ct-dot {pointer-events:none;position:absolute;z-index:2;width:24%;height:24%;border-radius:50%;background:#252b36c9;box-shadow:0 0 0 1.5px #fff0c5}
#ct-house .ct-dot.capture {width:90%;height:90%;border:3px solid #ffe19a;background:transparent;box-shadow:0 0 0 1px #45351d}
#ct-house .ct-square small {pointer-events:none;position:absolute;z-index:2;font:700 clamp(7px,1vw,11px)/1 system-ui;color:#252a32}
#ct-house .ct-square .rank {top:4%;left:5%}
#ct-house .ct-square .file {right:5%;bottom:4%}
#ct-house .ct-square.dark small {color:#fff5df}
#ct-house .ct-player-tools {display:inline-flex;align-items:center;gap:8px}
#ct-house button.ct-sound {min-height:34px;margin:1px 0 4px;padding:4px 9px;gap:6px;border-radius:6px;background:#181b23;border-color:#514b3a;font-size:.77rem;color:#f0d790}
#ct-house button.ct-sound::before {content:"";width:7px;height:7px;border-radius:50%;background:#e0bb62;box-shadow:0 0 0 1px #8f773b}
#ct-house button.ct-sound[aria-pressed="false"] {color:#c3c2c9;border-color:#474954}
#ct-house button.ct-sound[aria-pressed="false"]::before {background:transparent;box-shadow:0 0 0 1px #aaa8b2}
#ct-house .ct-game .ct-player.own {padding-top:6px}
#ct-house .ct-hero-board {border:0;overflow:visible;background:transparent;box-shadow:none}
#ct-house .ct-board.mini {padding:3px}
#ct-house .ct-player{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:42px;font-weight:700}#ct-house .ct-clock{background:#292c38;border:1px solid var(--edge);border-radius:6px;padding:2px 10px;font:650 1.1rem ui-monospace,monospace}#ct-house .ct-history{max-height:180px;overflow:auto;display:flex;flex-wrap:wrap;gap:5px 9px;font:normal .88rem/1.5 ui-monospace,monospace;color:var(--soft);margin:1rem 0}
#ct-house .ct-avatar{width:48px;height:48px;object-fit:cover;border-radius:10px;background:#393442}#ct-house .ct-avatar.tile{display:inline-grid;place-items:center;color:var(--gold);font:30px CTPieces,serif}#ct-house .ct-person,#ct-house .ct-line{display:flex;align-items:center;gap:.7rem;padding:.65rem 0;border-bottom:1px solid var(--edge)}#ct-house .ct-person small{display:block}#ct-house .ct-line b{min-width:90px}#ct-house .ct-profile-banner{position:relative;isolation:isolate;border-radius:12px;overflow:hidden;background:linear-gradient(110deg,#3f3341,#29242e);border-left:5px solid var(--gold);padding:20px}#ct-house .ct-cover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1;opacity:.25}#ct-house .tone-violet{border-color:#c899e8}#ct-house .tone-blue{border-color:#73c6e9}#ct-house .tone-green{border-color:#98ce93}#ct-house .ct-stats{display:flex;gap:2rem;margin:1rem 0}#ct-house .ct-stats strong{display:block;font-size:1.45rem}.ct-post{border-top:1px solid var(--edge);padding:12px 0}.ct-post time{font-size:.75rem;color:var(--soft)}.ct-post p{overflow-wrap:anywhere;white-space:pre-line}.ct-feature .ct-board{max-width:300px}#ct-house table{width:100%;border-collapse:collapse;color:var(--ink)}#ct-house th,#ct-house td{text-align:left;padding:.55rem;border-bottom:1px solid var(--edge)}
@media(max-width:700px){#ct-house{margin:8px 0 20px;border-radius:10px}#ct-house .ct-head{flex-wrap:wrap}#ct-house .ct-main{padding:14px}#ct-house .ct-game,#ct-house .ct-grid,#ct-house .ct-grid.social{grid-template-columns:1fr}#ct-house .ct-game{gap:10px}#ct-house .ct-fields{grid-template-columns:1fr}.ct-hero-board{width:100%;max-width:135px}#ct-house .ct-hero{grid-template-columns:minmax(0,1.6fr) minmax(65px,.55fr);gap:10px}#ct-house nav a{font-size:.78rem}#ct-house .ct-history{max-height:100px}#ct-house .ct-square small{font-size:9px}}
