/* ── Windows Classics window frame (site 1.71.0) ──────────────────────────────
   Shared by the Windows Classics games (sweeper, freecell, spider, hearts,
   reversi, mahjong, ski, trap). Markup:
     <section class="tc-window">
       <div class="tc-titlebar"><span class="tc-icon">💣</span><span class="tc-title">…</span>
         <span class="tc-btns"><a class="tc-btn tc-close" href="/games.php" aria-label="Close">✕</a></span></div>
       <nav class="tc-menubar"><button class="tc-menu">Game</button>…</nav>
       <div class="tc-body">…</div>
       <div class="tc-status"><span>…</span></div>
     </section>
   Two looks. Default: the site's future look (glass and neon, colours from
   te-future.css / holiday skins). With the "Classic" switch in the crumb bar
   (game/te-classic.js, localStorage ter_classic) body gets .tc-on and the frame
   turns into a 1990s desktop window: silver bevels, navy title bar, teal desk.
   ───────────────────────────────────────────────────────────────────────── */
.tc-window{position:relative;margin:0 auto;border-radius:12px;overflow:hidden;
  background:linear-gradient(180deg,rgba(20,32,52,.92),rgba(10,18,32,.95));
  border:1px solid var(--tf-accent,#3fd0ff);box-shadow:0 0 0 1px rgba(255,255,255,.04) inset,0 0 26px rgba(63,208,255,.18),0 18px 40px rgba(0,0,0,.45)}
.tc-titlebar{display:flex;align-items:center;gap:.5rem;padding:.45rem .6rem .45rem .8rem;
  background:linear-gradient(90deg,rgba(63,208,255,.22),rgba(255,61,154,.12));border-bottom:1px solid rgba(255,255,255,.08)}
.tc-icon{font-size:1.05rem;line-height:1}
.tc-title{flex:1;font-family:'Orbitron',system-ui,sans-serif;font-weight:700;font-size:.85rem;letter-spacing:.06em;color:var(--text,#E8ECF0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tc-btns{display:flex;gap:.3rem}
.tc-btn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:24px;border-radius:6px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.05);color:var(--text,#E8ECF0);font-size:.8rem;text-decoration:none;cursor:pointer}
.tc-btn:hover,.tc-btn:focus-visible{background:var(--tf-hot,#ff3d9a);color:#fff}
.tc-menubar{display:flex;flex-wrap:wrap;gap:.25rem;padding:.3rem .5rem;border-bottom:1px solid rgba(255,255,255,.06);background:rgba(0,0,0,.18)}
.tc-menu{background:none;border:1px solid transparent;border-radius:6px;color:var(--text,#E8ECF0);font:inherit;font-size:.82rem;padding:.3rem .65rem;cursor:pointer;min-height:32px}
.tc-menu:hover,.tc-menu:focus-visible,.tc-menu[aria-pressed="true"]{border-color:var(--tf-accent,#3fd0ff);background:rgba(63,208,255,.1)}
.tc-menu select{background:transparent;color:inherit;border:0;font:inherit}
.tc-body{padding:.8rem}
.tc-status{display:flex;flex-wrap:wrap;gap:.8rem;justify-content:space-between;padding:.35rem .8rem;font-size:.78rem;color:var(--muted,#9FB0C6);border-top:1px solid rgba(255,255,255,.06);background:rgba(0,0,0,.2)}
.tc-status b{color:var(--text,#E8ECF0);font-variant-numeric:tabular-nums}
.tc-sunken{border-radius:8px;background:rgba(0,0,0,.28);box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}
.tc-lcd{font-family:'Orbitron',ui-monospace,monospace;font-weight:700;color:var(--tf-hot,#ff3d9a);background:#05070c;border-radius:6px;padding:.15rem .5rem;min-width:3.6em;text-align:center;letter-spacing:.08em;font-variant-numeric:tabular-nums;text-shadow:0 0 8px currentColor}
/* the crumb-bar switch */
.tc-switch{margin-left:auto;background:transparent;border:1px solid var(--border,#2A3A52);border-radius:999px;color:var(--muted,#9FB0C6);font:inherit;font-size:.75rem;padding:.25rem .7rem;cursor:pointer;min-height:30px}
.tc-switch[aria-pressed="true"]{color:var(--text,#E8ECF0);border-color:var(--tf-accent,#3fd0ff)}
/* toast for achievements and tips */
.tc-toast{position:fixed;left:50%;bottom:calc(84px + env(safe-area-inset-bottom,0px));transform:translate(-50%,20px);opacity:0;z-index:90;pointer-events:none;
  background:rgba(10,18,32,.95);border:1px solid var(--tf-accent,#3fd0ff);border-radius:10px;padding:.55rem .9rem;font-size:.86rem;color:var(--text,#E8ECF0);box-shadow:0 8px 24px rgba(0,0,0,.5);transition:transform .25s,opacity .25s;max-width:calc(100vw - 32px)}
.tc-toast.show{transform:translate(-50%,0);opacity:1}

/* ── Classic look ────────────────────────────────────────────────────────── */
body.tc-on .main,body.tc-on main{background:#008080;background-image:radial-gradient(rgba(255,255,255,.05) 1px,transparent 1px);background-size:4px 4px}
body.tc-on .tc-window{border-radius:0;background:#c0c0c0;color:#000;border:0;
  box-shadow:inset -1px -1px #0a0a0a,inset 1px 1px #dfdfdf,inset -2px -2px #808080,inset 2px 2px #fff,6px 6px 0 rgba(0,0,0,.35);padding:3px}
body.tc-on .tc-titlebar{background:linear-gradient(90deg,#000080,#1084d0);border:0;padding:.2rem .25rem .2rem .45rem}
body.tc-on .tc-title{font-family:Tahoma,Verdana,'Segoe UI',sans-serif;font-size:.82rem;letter-spacing:0;color:#fff}
body.tc-on .tc-btn{width:20px;height:18px;border-radius:0;border:0;background:#c0c0c0;color:#000;font-size:.7rem;font-weight:700;
  box-shadow:inset -1px -1px #0a0a0a,inset 1px 1px #fff,inset -2px -2px #808080,inset 2px 2px #dfdfdf}
body.tc-on .tc-btn:active{box-shadow:inset 1px 1px #0a0a0a,inset -1px -1px #fff,inset 2px 2px #808080}
body.tc-on .tc-menubar{background:#c0c0c0;border:0;padding:.1rem .15rem}
body.tc-on .tc-menu{color:#000;border-radius:0;font-family:Tahoma,Verdana,sans-serif;min-height:28px}
body.tc-on .tc-menu:hover,body.tc-on .tc-menu:focus-visible,body.tc-on .tc-menu[aria-pressed="true"]{background:#000080;color:#fff;border-color:transparent}
body.tc-on .tc-body{background:#c0c0c0}
body.tc-on .tc-status{background:#c0c0c0;color:#000;border:0;font-family:Tahoma,Verdana,sans-serif}
body.tc-on .tc-status b{color:#000}
body.tc-on .tc-status > *{box-shadow:inset 1px 1px #808080,inset -1px -1px #fff;padding:.1rem .4rem}
body.tc-on .tc-sunken{border-radius:0;background:#c0c0c0;box-shadow:inset 1px 1px #808080,inset -1px -1px #fff,inset 2px 2px #0a0a0a,inset -2px -2px #dfdfdf}
body.tc-on .tc-lcd{border-radius:0;color:#f00;text-shadow:none;box-shadow:inset 1px 1px #808080,inset -1px -1px #fff}
body.tc-on .tc-toast{border-radius:0;background:#ffffe1;color:#000;border:1px solid #000;font-family:Tahoma,Verdana,sans-serif}
@media (prefers-reduced-motion:reduce){.tc-toast{transition:none}}
