.trl-page{--trl-card:#fff;--trl-soft:var(--color-bg-soft);--trl-x:#c40000;--trl-o:#17171c;--trl-grid:#26262c;--trl-hover:rgba(20,20,30,.04);--trl-wx:rgba(196,0,0,.08);--trl-wo:rgba(20,20,30,.07);--trl-shadow:0 22px 48px -30px rgba(10,10,20,.45);--trl-ok:#0f6a3a;--trl-bad:#a30000;--trl-focus:#b20000;overflow-x:clip}
html[data-theme="dark"] .trl-page{--trl-card:#161618;--trl-soft:#232327;--trl-x:#ff5b61;--trl-o:#f2f2f4;--trl-grid:#c9c9d0;--trl-hover:rgba(255,255,255,.05);--trl-wx:rgba(255,91,97,.14);--trl-wo:rgba(255,255,255,.09);--trl-shadow:none;--trl-ok:#86e3ae;--trl-bad:#ffa3aa;--trl-focus:#ff7b80}
.trl-page [hidden]{display:none!important}
.trl-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.trl-page button{font-family:inherit}
.trl-page button:focus-visible{outline:2px solid var(--trl-focus);outline-offset:2px}

.trl-hero{background:linear-gradient(180deg,var(--color-bg-soft) 0%,var(--color-bg-soft) 70%,var(--color-bg) 100%);padding:24px 0 36px;border-bottom:1px solid var(--color-hairline)}
.trl-hero__in{--trl-bw:clamp(440px,calc(100vh - 316px),640px);display:grid;grid-template-columns:minmax(0,var(--trl-bw)) minmax(600px,1fr);grid-template-rows:auto minmax(0,1fr);grid-template-areas:"play top" "play side";gap:16px 36px;align-items:start}
.trl-top{grid-area:top;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);grid-template-areas:"title ph";min-width:0;min-height:196px}
.trl-title{grid-area:title;min-width:0;padding:2px 18px 0 0}
.trl-ph{grid-area:ph;position:relative;min-width:0;overflow:hidden;border-radius:18px}
.trl-ph img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:52% 46%;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 40%);mask-image:linear-gradient(90deg,transparent 0,#000 40%)}
html[data-theme="dark"] .trl-ph img{opacity:.86}
.trl-eyebrow{margin:0 0 8px;font-size:12px;font-weight:800;letter-spacing:.08em;color:var(--color-brand)}
.trl-title h1{margin:0 0 10px;font-size:clamp(36px,3.4vw,54px);line-height:1;letter-spacing:-.025em;font-weight:900;color:var(--color-ink)}
.trl-sub{margin:0;font-size:15px;line-height:1.5;color:var(--color-muted)}

.trl-play{grid-area:play;min-width:0}
.trl-card{background:var(--trl-card);border:1px solid var(--color-border);border-radius:22px;box-shadow:var(--trl-shadow);overflow:hidden}
.trl-boardbox{position:relative;width:100%;aspect-ratio:1/1}
.trl-grid,.trl-win{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.trl-grid path{fill:none;stroke:var(--trl-grid);stroke-width:3.8;stroke-linecap:round}
.trl-board{position:absolute;inset:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));touch-action:manipulation;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}
.trl-cell{position:relative;display:block;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:inherit;cursor:default;-webkit-tap-highlight-color:transparent}
.trl-cell::before{content:"";position:absolute;inset:8%;border-radius:16px;background:transparent;transition:background .18s;pointer-events:none;text-align:left;padding:6px 10px;font-size:13px;font-weight:800;line-height:1;color:var(--color-meta)}
.trl-board.is-live .trl-cell:not(.is-x):not(.is-o){cursor:pointer}
.trl-board[aria-busy="true"] .trl-cell{cursor:progress}
.trl-page .trl-cell:focus-visible{outline:none}
.trl-cell:focus-visible::before{box-shadow:inset 0 0 0 3px var(--trl-focus)}
.trl-board.is-kb .trl-cell:not(.is-x):not(.is-o)::before{content:attr(data-k)}
.trl-cell.is-wcell.is-x::before{background:var(--trl-wx)}
.trl-cell.is-wcell.is-o::before{background:var(--trl-wo)}
.trl-m{position:absolute;inset:0;display:block;width:100%;height:100%;overflow:visible;pointer-events:none;transition:opacity .4s ease .2s,transform .2s ease}
.trl-m path,.trl-m circle{fill:none;stroke-width:8;stroke-linecap:round;stroke-dasharray:1 1.2;stroke-dashoffset:0;animation:trl-draw .2s cubic-bezier(.5,0,.25,1) both}
.trl-m--x path{stroke:var(--trl-x)}
.trl-m--x path+path{animation-delay:.15s}
.trl-m--o circle{stroke:var(--trl-o);animation-duration:.36s}
.trl-m{animation:trl-pop .42s cubic-bezier(.3,1.5,.5,1) backwards}
@keyframes trl-draw{from{stroke-dashoffset:1.01}to{stroke-dashoffset:0}}
@keyframes trl-pop{from{transform:scale(.86)}to{transform:scale(1)}}
@media (hover:hover){
.trl-board.is-live .trl-cell:not(.is-x):not(.is-o):hover::before{background:var(--trl-hover)}
.trl-board.is-live .trl-cell:not(.is-x):not(.is-o):hover::after{content:"";position:absolute;inset:0;opacity:.17;pointer-events:none;-webkit-mask:var(--trl-ghost) center/100% 100% no-repeat;mask:var(--trl-ghost) center/100% 100% no-repeat;background:var(--trl-ghost-c)}
.trl-board[data-turn="x"]{--trl-ghost:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M26 26 74 74M74 26 26 74' fill='none' stroke='%23000' stroke-width='8' stroke-linecap='round'/%3E%3C/svg%3E");--trl-ghost-c:var(--trl-x)}
.trl-board[data-turn="o"]{--trl-ghost:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='27' fill='none' stroke='%23000' stroke-width='8'/%3E%3C/svg%3E");--trl-ghost-c:var(--trl-o)}
}
.trl-board.is-over .trl-cell:not(.is-wcell) .trl-m{opacity:.22}
.trl-board.is-draw .trl-cell .trl-m{opacity:.5}
.trl-board.is-clearing .trl-m{opacity:0;transform:scale(.8);transition:opacity .18s,transform .18s}
.trl-board.is-clearing~.trl-win{opacity:0;transition:opacity .18s}
.trl-cell.is-nope .trl-m{animation:trl-nope .32s ease}
@keyframes trl-nope{25%{transform:translateX(-5%)}75%{transform:translateX(5%)}}
.trl-win line{fill:none;stroke-width:9;stroke-linecap:round;stroke-dasharray:1 1.2;stroke-dashoffset:1.01;opacity:0}
.trl-win.is-on line{opacity:1;animation:trl-draw .46s cubic-bezier(.6,0,.2,1) .2s both}
.trl-win.is-x line{stroke:var(--trl-x)}
.trl-win.is-o line{stroke:var(--trl-o)}

.trl-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:74px;padding:12px 14px 12px 20px;border-top:1px solid var(--color-hairline)}
.trl-st{display:flex;align-items:center;gap:11px;min-width:0;margin:0;font-size:17px;font-weight:800;line-height:1.3;color:var(--color-ink)}
.trl-st span{min-width:0}
.trl-st__dot{flex:0 0 auto;width:10px;height:10px;border-radius:50%;background:#2fbf71;box-shadow:0 0 0 4px rgba(47,191,113,.2)}
.trl-st.is-think .trl-st__dot{background:#f2a516;box-shadow:0 0 0 4px rgba(242,165,22,.22);animation:trl-pulse 1s ease-in-out infinite}
.trl-st.is-win{color:var(--trl-ok)}
.trl-st.is-win .trl-st__dot{background:var(--trl-ok);box-shadow:0 0 0 4px rgba(47,191,113,.22)}
.trl-st.is-loss{color:var(--trl-bad)}
.trl-st.is-loss .trl-st__dot{background:var(--trl-bad);box-shadow:0 0 0 4px rgba(178,0,0,.16)}
.trl-st.is-draw .trl-st__dot{background:var(--color-meta);box-shadow:0 0 0 4px rgba(120,120,130,.2)}
@keyframes trl-pulse{50%{opacity:.35}}
.trl-new{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;min-height:48px;padding:0 18px;border:0;border-radius:14px;background:var(--color-ink);color:var(--color-bg);font-size:15px;font-weight:800;white-space:nowrap;cursor:pointer;transition:background .15s,color .15s}
.trl-new:hover{background:var(--color-brand);color:#fff}
.trl-new.is-hot{background:var(--color-brand);color:#fff;animation:trl-ring 1.3s ease-out .5s 2}
@keyframes trl-ring{0%{box-shadow:0 0 0 0 rgba(178,0,0,.45)}100%{box-shadow:0 0 0 14px rgba(178,0,0,0)}}
.trl-nojs{margin:10px 2px 0;font-size:14px;color:var(--color-muted)}

.trl-side{grid-area:side;align-self:stretch;min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"sc set" "st set" "kb set";grid-template-rows:auto auto minmax(0,1fr);gap:18px 24px;align-content:start;padding:18px;background:var(--trl-card);border:1px solid var(--color-border);border-radius:22px;box-shadow:var(--trl-shadow)}
.trl-sc{grid-area:sc;min-width:0}
.trl-set{grid-area:set;display:flex;flex-direction:column;gap:16px;min-width:0}
.trl-stats{grid-area:st;min-width:0}
.trl-k{margin:0 0 8px;font-size:11px;font-weight:800;letter-spacing:.08em;color:var(--color-meta)}
.trl-sc__h{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.trl-sc__h small{min-width:0;font-size:12px;font-weight:700;color:var(--color-meta);text-align:right}
.trl-sc__t{display:grid;grid-template-columns:repeat(3,minmax(max-content,1fr));gap:6px}
.trl-tile{display:flex;flex-direction:column;gap:2px;min-width:0;padding:10px 11px 8px;border-radius:14px;background:var(--trl-soft);transition:box-shadow .2s}
.trl-tile__k{font-size:13px;font-weight:800;line-height:1.2;color:var(--color-muted);white-space:nowrap}
.trl-tile__r{display:flex;align-items:center;justify-content:space-between;gap:6px}
.trl-tile__v{display:block;font-size:34px;line-height:1.08;font-weight:900;color:var(--color-ink);font-variant-numeric:tabular-nums;transform-origin:30% 60%}
.trl-tile__v.is-bump{animation:trl-bump .55s cubic-bezier(.3,1.6,.5,1)}
@keyframes trl-bump{40%{transform:scale(1.35)}}
.trl-tile__m{display:flex}
.trl-tile.is-turn{box-shadow:inset 0 0 0 2px var(--color-ink)}
.trl-mk{flex:0 0 auto;display:block;width:22px;height:22px}
.trl-mk path,.trl-mk circle{fill:none;stroke-width:12;stroke-linecap:round}
.trl-mk--x path{stroke:var(--trl-x)}
.trl-mk--o circle{stroke:var(--trl-o)}
.trl-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;margin-top:8px;padding:8px 12px;border:0;border-radius:12px;background:var(--trl-soft);color:var(--color-ink);font-size:14px;font-weight:800;cursor:pointer;transition:background .15s}
.trl-btn:hover{background:var(--color-border)}
.trl-opt{min-width:0;transition:opacity .2s}
.trl-opt.is-off{opacity:.45}
.trl-seg{display:flex;gap:4px;padding:4px;border-radius:14px;background:var(--trl-soft)}
.trl-seg button{flex:1 1 0;min-width:0;min-height:44px;padding:6px 6px;border:0;border-radius:10px;background:transparent;color:var(--color-muted);font-size:14.5px;font-weight:800;white-space:nowrap;cursor:pointer;transition:background .15s,color .15s}
.trl-seg button:hover:not(:disabled){color:var(--color-ink)}
.trl-seg button:disabled{cursor:default}
.trl-seg button[aria-pressed="true"]{background:var(--color-brand);color:#fff}
.trl-seg--mk button{display:flex;align-items:center;justify-content:center}
.trl-seg--mk .trl-mk{width:26px;height:26px}
.trl-seg--mk button[aria-pressed="true"] .trl-mk path,.trl-seg--mk button[aria-pressed="true"] .trl-mk circle{stroke:#fff}
.trl-note{margin:8px 2px 0;min-height:2.9em;font-size:13.5px;line-height:1.45;color:var(--color-muted)}
.trl-note--alt{min-height:0;margin:0 2px;padding-top:12px;border-top:1px solid var(--color-hairline)}
.trl-kbd{grid-area:kb;align-self:end;display:none;min-height:0;margin:0 2px}
.trl-kbd kbd{display:inline-block;min-width:1.6em;padding:0 5px;border:1px solid var(--color-border);border-bottom-width:2px;border-radius:6px;background:var(--trl-card);font:inherit;font-size:12px;font-weight:800;line-height:1.5;text-align:center;color:var(--color-ink)}
@media (min-width:1200px) and (min-height:1000px){.trl-kbd{display:block}}
@media (pointer:coarse){.trl-kbd{display:none}}
.trl-stats__t{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}
.trl-stats__t th,.trl-stats__t td{padding:8px 4px;border-top:1px solid var(--color-hairline);text-align:center;color:var(--color-ink)}
.trl-stats__t thead th{padding-top:2px;border-top:0;font-size:11.5px;font-weight:800;color:var(--color-meta)}
.trl-stats__t th[scope="row"],.trl-stats__t thead th:first-child{text-align:left;font-weight:700}
.trl-stats__t tr.is-cur th[scope="row"]{font-weight:900}
.trl-stats__t tr.is-cur th[scope="row"]::after{content:"";display:inline-block;width:7px;height:7px;margin-left:7px;border-radius:50%;background:var(--color-brand);vertical-align:2px}
.trl-link{display:inline-flex;align-items:center;min-height:44px;padding:0 2px;border:0;background:transparent;color:var(--color-muted);font-size:13.5px;font-weight:700;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.trl-link:hover{color:var(--color-ink)}
.trl-link.is-armed{color:var(--trl-bad)}

.trl-adw{min-width:0}
.trl-ad{margin:28px auto 0}

.trl-body{padding-bottom:60px}
.trl-how{margin-top:44px}
.trl-h2{display:flex;gap:10px;align-items:center;margin:0 0 18px;padding-bottom:10px;border-bottom:2px solid var(--color-ink);font-size:clamp(20px,2vw,26px);font-weight:900;color:var(--color-ink)}
.trl-h2::before{content:"//";color:var(--color-brand)}
.trl-how__in{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,470px);gap:44px;align-items:start}
.trl-how__l{margin:0;padding:0;list-style:none;columns:2 360px;column-gap:44px}
.trl-how__l li{position:relative;padding-left:20px;margin:0 0 12px;font-size:16px;line-height:1.6;color:var(--color-text);break-inside:avoid}
.trl-how__l li::before{content:"";position:absolute;left:2px;top:.65em;width:7px;height:7px;border-radius:50%;background:var(--color-brand)}
.trl-how__l b{color:var(--color-ink)}
.trl-mini{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.trl-mini figure{min-width:0;margin:0;padding:12px 12px 10px;border-radius:16px;background:var(--trl-card);border:1px solid var(--color-border);text-align:center}
.trl-mini__b{display:block;width:100%;height:auto;aspect-ratio:1/1}
.trl-mini__g{fill:none;stroke:var(--trl-grid);stroke-width:6;stroke-linecap:round}
.trl-mini__x{fill:none;stroke:var(--trl-x);stroke-width:12;stroke-linecap:round}
.trl-mini__o{fill:none;stroke:var(--trl-o);stroke-width:12}
.trl-mini__w{fill:none;stroke-width:7;stroke-linecap:round}
.trl-mini .is-dim{opacity:.25}
.trl-mini__h--x{fill:var(--trl-wx)}
.trl-mini__h--o{fill:var(--trl-wo)}
.trl-mini__w--x{stroke:var(--trl-x)}
.trl-mini__w--o{stroke:var(--trl-o)}
.trl-mini figcaption{margin-top:8px;font-size:13.5px;font-weight:800;color:var(--color-muted)}

@media (prefers-reduced-motion:reduce){
.trl-m,.trl-m path,.trl-m circle,.trl-win.is-on line,.trl-tile__v.is-bump,.trl-new.is-hot,.trl-st.is-think .trl-st__dot,.trl-cell.is-nope .trl-m{animation:none}
.trl-win.is-on line{stroke-dashoffset:0}
.trl-m{transition:none}
}

@media (min-width:1200px) and (max-height:860px){
.trl-hero{padding-top:18px}
.trl-hero__in{--trl-bw:clamp(440px,calc(100vh - 300px),640px);gap:12px 32px}
.trl-top{min-height:170px}
.trl-title h1{font-size:clamp(34px,3vw,46px);margin-bottom:8px}
.trl-sub{font-size:14px;line-height:1.45}
.trl-side{padding:14px;gap:12px 20px}
.trl-set{gap:12px}
.trl-bar{min-height:66px;padding-top:9px;padding-bottom:9px}
.trl-stats__t th,.trl-stats__t td{padding:5px 4px}
.trl-top{min-height:160px}
.trl-tile{padding:8px 10px 6px}
.trl-tile__v{font-size:30px}
.trl-btn{min-height:42px}
.trl-seg button{min-height:42px}
.trl-k{margin-bottom:6px}
.trl-note{margin-top:6px;font-size:13px}
.trl-note--alt{padding-top:10px}
.trl-link{min-height:40px}
}
@media (max-width:1199px){
.trl-hero__in{--trl-bw:clamp(400px,calc(100vh - 300px),600px);grid-template-columns:minmax(0,var(--trl-bw)) minmax(300px,1fr);gap:14px 28px}
.trl-top{grid-template-columns:minmax(0,1fr);grid-template-areas:"ph" "title";min-height:0;gap:6px}
.trl-ph{height:150px}
.trl-ph img{-webkit-mask-image:linear-gradient(#000 42%,transparent);mask-image:linear-gradient(#000 42%,transparent)}
.trl-title{padding:0}
.trl-sub{margin-bottom:4px}
.trl-side{grid-template-columns:minmax(0,1fr);grid-template-areas:"sc" "set" "st" "kb";grid-template-rows:none}
.trl-how__in{grid-template-columns:minmax(0,1fr);gap:24px}
.trl-mini{max-width:520px}
}
@media (max-width:899px),(max-width:1199px) and (orientation:portrait){
.trl-hero{padding:0 0 30px}
.trl-hero__in{grid-template-columns:minmax(0,600px);grid-template-rows:none;grid-template-areas:"top" "play" "side";justify-content:center;gap:10px}
.trl-top{margin:0 calc(50% - 50vw);gap:0}
.trl-ph{height:clamp(150px,30vw,230px);border-radius:0}
.trl-ph img{object-position:50% 52%;-webkit-mask-image:linear-gradient(#000 45%,transparent);mask-image:linear-gradient(#000 45%,transparent)}
.trl-title{width:min(600px,calc(100vw - 40px));margin:0 auto}
.trl-title h1{font-size:clamp(34px,7vw,44px)}
.trl-sub{margin-bottom:6px}
.trl-side{margin-top:6px}
.trl-how{max-width:600px;margin-left:auto;margin-right:auto}
.trl-how__l{columns:1}
}
@media (min-width:600px) and (max-width:899px),(min-width:600px) and (max-width:1199px) and (orientation:portrait){
.trl-side{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"sc set" "st set" "kb set";grid-template-rows:auto auto minmax(0,1fr)}
}
@media (max-width:767px){.trl-ad:not(.is-filled){min-height:280px}}
@media (max-width:520px){
.trl-hero{padding:0 0 26px}
.trl-ph{height:150px}
.trl-play{margin:0 -6px}
.trl-card{border-radius:20px}
.trl-title h1{font-size:34px;margin-bottom:6px}
.trl-sub{font-size:14px}
.trl-bar{gap:10px;min-height:70px;padding:10px 10px 10px 14px}
.trl-st{gap:9px;font-size:15.5px}
.trl-new{min-height:46px;padding:0 14px;font-size:14.5px}
.trl-new svg{display:none}
.trl-side{padding:12px;border-radius:18px;gap:16px}
.trl-tile{padding:9px 9px 7px}
.trl-tile__k{font-size:12.5px}
.trl-tile__v{font-size:30px}
.trl-mk{width:19px;height:19px}
.trl-seg button{font-size:14px}
.trl-how__l li{font-size:15px}
.trl-mini{gap:8px}
.trl-mini figure{padding:8px 8px 6px;border-radius:14px}
}
@media (max-width:380px){
.trl-tile{padding:8px 7px 7px}
.trl-tile__k{font-size:12px}
.trl-sc__t{gap:5px}
}
