
:root {
  --t6-bg: #0e0b22; --t6-deep: #08061a; --t6-cell: #1c1840; --t6-cell-line: #3b3577; --t6-ink: #f3efff; --t6-muted: #a69fd0;
  --t6-gold: #ffc857; --t6-gold-deep: #e39b1d; --t6-coral: #ff7a6b; --t6-mint: #6be3b5; --t6-violet: #9b8cff;
  --t6-cut: 10px; --t6-font: "Lexend", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
.t6-app, .t6-app *, .t6-overlay, .t6-overlay * { box-sizing: border-box; }
.t6-app { position: relative; display: flex; flex-direction: column; color: var(--t6-ink); font: 16px/1.45 var(--t6-font);
  overflow: hidden; }
.t6-app.t6-embedded { min-height: 620px; border-radius: 0; border: 1px solid var(--t6-cell-line);
  background: radial-gradient(120% 80% at 50% 30%, #1b1446 0%, var(--t6-bg) 55%, var(--t6-deep) 100%); clip-path: polygon(var(--t6-cut) 0, 100% 0, 100% calc(100% - var(--t6-cut)), calc(100% - var(--t6-cut)) 100%, 0 100%, 0 var(--t6-cut)); }
#t6Bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.t6-embedded #t6Bg { position: absolute; }
.t6-body { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; }
.t6-overlay { font-family: var(--t6-font); color: var(--t6-ink); }
.t6-app button, .t6-overlay button { font: inherit; color: inherit; cursor: pointer; }   
.t6-app button:focus-visible, .t6-app input:focus-visible, .t6-overlay button:focus-visible { outline: 2px solid var(--t6-gold); outline-offset: -4px; }
.t6-app .t6-go, .t6-app .t6-btn.go, .t6-overlay .t6-btn.go { color: #2a1600; }   
.t6-app { --gs-ink: var(--t6-ink); --gs-muted: var(--t6-muted); --gs-line: var(--t6-cell-line); --gs-accent: var(--t6-gold);
  --gs-accent-ink: #2a1600; --gs-panel: #17133a; --gs-bg: var(--t6-bg); }
.t6-app.gs-fs { background: radial-gradient(120% 80% at 50% 30%, #1b1446 0%, var(--t6-bg) 55%, var(--t6-deep) 100%); min-height: 0; }
.t6-app.gs-fs .t6-flower-wrap { width: min(94vw, 580px, calc(100dvh - 330px)); min-width: 260px; }
.t6-main { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 0 max(16px, env(safe-area-inset-left)) calc(20px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-right)); }
.t6-flower-wrap { position: relative; width: min(94vw, 440px, 52vh); aspect-ratio: 1; max-width: 100%; }
.t6-flower-wrap svg { width: 100%; height: 100%; display: block; overflow: visible; }
.t6-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 22%; text-align: center;
  font-weight: 600; font-size: clamp(11px, 2.9vw, 15px); line-height: 1.15; pointer-events: none; text-wrap: balance; }
.t6-center.long { width: 25%; font-size: clamp(9px, 2.3vw, 12px); }   
.t6-center small { display: block; color: var(--t6-gold); font-size: .78em; margin-top: 3px; font-variant-numeric: tabular-nums; }
.t6-cell { transition: fill .35s, stroke .35s; }
.t6-cell-empty { fill: var(--t6-cell); stroke: var(--t6-cell-line); }
.t6-cell-lit { fill: url(#t6Honey); stroke: var(--t6-gold); }
.t6-cell-list { fill: #2c2a5c; stroke: var(--t6-violet); }
.t6-cell-hint { fill: rgba(255, 122, 107, .12); stroke: var(--t6-coral); stroke-dasharray: 6 5; }
.t6-word { font: 600 15px var(--t6-font); fill: #2a1600; text-anchor: middle; dominant-baseline: middle; }
.t6-word.list { fill: var(--t6-ink); }
.t6-word.hint { fill: var(--t6-coral); font-weight: 800; }
.t6-cell-hint + .t6-word + .t6-pts { fill: var(--t6-coral); }
.t6-pts { font: 600 10px var(--t6-font); fill: #5a3400; text-anchor: middle; }
.t6-ring-bg { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 7; }
.t6-ring { fill: none; stroke: var(--t6-gold); stroke-width: 7; stroke-linecap: round; transition: stroke .4s; }
.t6-ring.low { stroke: var(--t6-coral); }
.t6-synapse { stroke: var(--t6-gold); stroke-width: 1.5; opacity: .45; }
.t6-entry { width: min(100%, 440px); display: flex; gap: 8px; }
.t6-input { flex: 1; min-width: 0; background: rgba(8, 6, 26, .7); border: 2px solid var(--t6-cell-line); border-radius: 0; color: var(--t6-ink);
  font: 600 20px var(--t6-font); padding: 12px 14px; clip-path: polygon(var(--t6-cut) 0, 100% 0, 100% calc(100% - var(--t6-cut)), calc(100% - var(--t6-cut)) 100%, 0 100%, 0 var(--t6-cut)); }
.t6-input:focus { border-color: var(--t6-gold); outline: 2px solid var(--t6-gold); outline-offset: -4px; }
.t6-go { background: var(--t6-gold); color: #2a1600; border: 0; border-radius: 0; font-weight: 800; padding: 0 18px; clip-path: polygon(var(--t6-cut) 0, 100% 0, 100% calc(100% - var(--t6-cut)), calc(100% - var(--t6-cut)) 100%, 0 100%, 0 var(--t6-cut)); }
.t6-msg { min-height: 1.5em; font-weight: 600; text-align: center; }
.t6-msg.good { color: var(--t6-mint); } .t6-msg.bad { color: var(--t6-coral); } .t6-msg.info { color: var(--t6-muted); }
.t6-hints { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.t6-btn { background: rgba(28, 24, 64, .85); border: 1px solid var(--t6-cell-line); border-radius: 0; padding: 9px 14px; font-weight: 600; font-size: 14px; clip-path: polygon(var(--t6-cut) 0, 100% 0, 100% calc(100% - var(--t6-cut)), calc(100% - var(--t6-cut)) 100%, 0 100%, 0 var(--t6-cut)); }
.t6-btn:hover { border-color: var(--t6-gold); }
.t6-btn b { color: var(--t6-coral); font-weight: 600; }
.t6-btn.go { background: var(--t6-gold); color: #2a1600; border-color: var(--t6-gold); font-weight: 800; }
.t6-btn[disabled] { opacity: .4; cursor: default; }
.t6-shake { animation: t6-shake .32s; }
@keyframes t6-shake { 25% { transform: translateX(-7px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
.t6-panel { background: #17133a; border: 1px solid var(--t6-cell-line); border-radius: 0; padding: 18px; width: min(560px, 100%); max-height: 90vh; overflow-y: auto; clip-path: polygon(var(--t6-cut) 0, 100% 0, 100% calc(100% - var(--t6-cut)), calc(100% - var(--t6-cut)) 100%, 0 100%, 0 var(--t6-cut)); }
.t6-panel h3 { margin: 0 0 4px; font-size: 18px; }
.t6-panel p { margin: 0 0 12px; color: var(--t6-muted); font-size: 14px; }
.t6-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.t6-tile { background: var(--t6-cell); border: 1px solid var(--t6-cell-line); border-radius: 0; padding: 10px 6px; font-weight: 600; font-size: 14px; overflow-wrap: anywhere; clip-path: polygon(var(--t6-cut) 0, 100% 0, 100% calc(100% - var(--t6-cut)), calc(100% - var(--t6-cut)) 100%, 0 100%, 0 var(--t6-cut)); }
.t6-tile:hover { border-color: var(--t6-violet); }
.t6-end { width: min(100%, 520px); display: flex; flex-direction: column; gap: 12px; }
.t6-verdict { text-align: center; font-weight: 800; font-size: clamp(28px, 8vw, 44px); letter-spacing: .04em; }
.t6-verdict.ok { color: var(--t6-gold); text-shadow: 0 0 26px rgba(255, 200, 87, .45); } .t6-verdict.no { color: var(--t6-violet); }
.t6-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.t6-stat { background: rgba(28, 24, 64, .85); border: 1px solid var(--t6-cell-line); border-radius: 0; padding: 10px; text-align: center; clip-path: polygon(var(--t6-cut) 0, 100% 0, 100% calc(100% - var(--t6-cut)), calc(100% - var(--t6-cut)) 100%, 0 100%, 0 var(--t6-cut)); }
.t6-stat b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.t6-stat span { font-size: 12px; color: var(--t6-muted); }
.t6-stat.gold b { color: var(--t6-gold); }
.t6-also { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.t6-also li { background: rgba(28, 24, 64, .85); border-radius: 0; padding: 8px 12px; font-size: 14px; clip-path: polygon(var(--t6-cut) 0, 100% 0, 100% calc(100% - var(--t6-cut)), calc(100% - var(--t6-cut)) 100%, 0 100%, 0 var(--t6-cut)); }
.t6-also b { color: var(--t6-gold); }
--t6-cut: 4px; clip-path: polygon(var(--t6-cut) 0, 100% 0, 100% calc(100% - var(--t6-cut)), calc(100% - var(--t6-cut)) 100%, 0 100%, 0 var(--t6-cut)); }
.t6-also span.m { color: var(--t6-muted); }
.t6-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.t6-rules { color: var(--t6-muted); font-size: 13px; text-align: center; max-width: 440px; }
@media (max-width: 420px) { .t6-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .t6-word { font-size: 13px; } }
.t6-cell-list + .t6-word + .t6-pts { fill: var(--t6-muted); }
.t6-3d > svg { visibility: hidden; }
.t6-3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  -webkit-mask-image: radial-gradient(closest-side, #000 92%, transparent 100%); mask-image: radial-gradient(closest-side, #000 92%, transparent 100%); }
.t6-3d-labels { position: absolute; inset: 0; pointer-events: none; }
.t6-l3 { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; max-width: 24%;
  text-align: center; line-height: 1.1; will-change: transform; text-shadow: 0 1px 6px rgba(8, 6, 26, .9); }
.t6-l3 b { font-weight: 700; font-size: clamp(11px, 3vw, 15px); color: var(--t6-ink); overflow-wrap: anywhere; }
.t6-l3.sm b { font-size: clamp(10px, 2.6vw, 13px); } .t6-l3.xs b { font-size: clamp(9px, 2.3vw, 11.5px); }
.t6-l3 small { font-size: 10px; font-weight: 600; color: var(--t6-muted); margin-top: 2px; }
.t6-l3.lit b { color: #2a1600; text-shadow: 0 0 8px rgba(255, 236, 180, .9); } .t6-l3.lit small { color: #5a3400; text-shadow: none; }
.t6-l3.hint b { color: var(--t6-coral); font-size: 24px; font-weight: 800; } .t6-l3.hint small { color: var(--t6-coral); }
.t6-3d .t6-center { text-shadow: 0 1px 8px rgba(8, 6, 26, .95); width: 24%; padding: 0 6px; border-radius: 46%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; line-height: 1.12;
  background: radial-gradient(closest-side, rgba(20, 14, 58, .9), rgba(20, 14, 58, .7) 75%, rgba(20, 14, 58, 0)); }
.t6-3d .t6-center span { overflow-wrap: break-word; hyphens: auto; }
.t6-3d-lost .t6-center { width: 22% !important; height: auto !important; display: block; background: none; }
.t6-3d.t6-3d-lost > svg { visibility: visible; }
.t6-3d-lost .t6-3d-canvas, .t6-3d-lost .t6-3d-labels { display: none; }
.t6-3d-lost .t6-center { top: 50% !important; }
.t6-slot .t6-cell-empty { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .24); stroke-width: 1.6; stroke-dasharray: 6 6; }
.t6-slot .t6-cell-lit { fill: var(--c); stroke: none; }
.t6-slot .t6-cell-list { fill: var(--c); fill-opacity: .55; stroke: none; }
.t6-slot.card .t6-cell-lit, .t6-slot.card .t6-cell-list { fill: #fff; fill-opacity: 1; stroke: var(--c); stroke-width: 9; stroke-dasharray: none; }
.t6-slot .t6-word { fill: #fff; paint-order: stroke; stroke: rgba(0, 0, 0, .25); stroke-width: 2px; }
.t6-slot .t6-pts { fill: rgba(255, 255, 255, .9); }
.t6-slot.card .t6-word { fill: #2a1a55; stroke: none; }
.t6-slot.card .t6-pts { fill: var(--c); font-weight: 800; }
.t6-slot .t6-word.hint { fill: var(--t6-coral); stroke: none; }
.t6-trace { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0;
  transition: stroke-dashoffset .9s ease-out, opacity .2s; filter: drop-shadow(0 0 4px rgba(255, 255, 255, .8)); pointer-events: none; }
.t6-trace.on { stroke-dashoffset: 0; opacity: 1; }
.t6-fold { fill: rgba(0, 0, 0, .28); }
.t6-core { fill: #fff; }
.t6-center[class*="t6-look-"] { color: #24104f; }
.t6-center[class*="t6-look-"] small { color: #b07400; }
.t6-ring { stroke-linejoin: round; }
.t6-center span { overflow-wrap: anywhere; }   
.t6-center.long[class*="t6-look-"] { width: 27%; font-size: clamp(8px, 2.1vw, 12px); }
