/* Games (ttc-games.js) */
.tg-main{gap:18px}
.tg-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 24px;flex-wrap:wrap;background:linear-gradient(135deg,#123039,#111D22 60%)}
.tg-hero .ta-h1{margin:0}
.tg-today{flex:0 1 320px;display:flex;flex-direction:column;gap:8px}
.tg-today-top{display:flex;align-items:baseline;gap:8px}
.tg-today-top strong{font:700 22px 'Space Grotesk',Inter,sans-serif}
.tg-today-top span{color:#8FA6AD;font-size:14px}
.tg-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.tg-stats>div{padding:14px 16px;display:flex;flex-direction:column;gap:2px}
.tg-stats strong{font:700 24px 'Space Grotesk',Inter,sans-serif}
.tg-stats span{color:#8FA6AD;font-size:13px}
.tg-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px}
.tg-game{display:flex;gap:16px;padding:18px;align-items:center}
#ttc-feed-app .tg-game h2{margin:0 0 4px;font-size:18px}
.tg-game p{font-size:14px;margin:0 0 12px!important}
.tg-game.soon{opacity:.6}
.tg-game-art{flex:none;width:110px;height:110px;border-radius:16px;background:#0E191D;display:flex;align-items:center;justify-content:center}
.tg-game-art .tg-robot{width:92px;height:92px}
.tg-game-art.tiles{gap:4px;flex-wrap:wrap;padding:14px}
.tg-game-art.tiles span{width:36px;height:36px;border-radius:8px;background:#F5C97F;color:#2A1A00;font:700 18px 'Space Grotesk',Inter,sans-serif;display:flex;align-items:center;justify-content:center}
.tg-btns{display:flex;gap:8px;flex-wrap:wrap}
.tg-section{padding:16px 18px;display:flex;flex-direction:column;gap:4px}
#ttc-feed-app .tg-section h2{margin:0 0 8px;font-size:17px}
.tg-row{display:flex;align-items:center;gap:12px;padding:10px 8px;border-radius:12px;color:#E8F1F3!important}
.tg-row:hover{background:#15242A}
.tg-row.turn{background:#3FD2E80F}
.tg-row-ic{width:44px;height:44px;border-radius:50%;background:#15242A;display:flex;align-items:center;justify-content:center;color:#3FD2E8;flex:none}
.tg-row-main{flex:1;min-width:0}
.tg-row-main strong{display:block;font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tg-row-main small{display:block;font-size:13px;color:#8FA6AD;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tg-pts{color:#A6E3B5;font-weight:700;font-size:14px}
.tg-result{font-size:13px;font-weight:700;padding:4px 10px;border-radius:999px}
.tg-result.good{background:#A6E3B522;color:#A6E3B5}.tg-result.bad{background:#FF8A8A1f;color:#FF8A8A}
.tg-go{font-size:13px;font-weight:700;color:#3FD2E8}
/* Game screen */
.tg-top{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.tg-title{margin:0!important;font-size:22px!important}
.tg-play{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(200px,280px) 1fr;gap:24px;padding:24px;align-items:start}
.tg-art{display:flex;justify-content:center}
.tg-robot{width:100%;max-width:260px;height:auto}
.tg-gallows{fill:none;stroke:#3A5560;stroke-width:6;stroke-linecap:round;stroke-linejoin:round}
.tg-part{fill:none;stroke:#3FD2E8;stroke-width:6;stroke-linecap:round;stroke-linejoin:round;animation:tg-draw .35s ease-out}
rect.tg-part{fill:#15242A}
.tg-eye{fill:#3FD2E8}
.tg-robot.lost .tg-part{stroke:#FF8A8A}.tg-robot.lost .tg-eye{display:none}
.tg-x{stroke:#FF8A8A;stroke-width:3;stroke-linecap:round}
@keyframes tg-draw{from{opacity:0;transform:scale(.9)}}
.tg-right{display:flex;flex-direction:column;gap:18px;min-width:0}
.tg-status{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:14px}
.tg-chip{padding:5px 10px;border-radius:999px;background:#15242A;color:#B9CCD1;font-size:13px;font-weight:600}
.tg-hint{color:#F5C97F;font-weight:600}
.tg-lives{display:flex;gap:4px}
.tg-lives span{width:12px;height:12px;border-radius:50%;background:#23363D}
.tg-lives span.on{background:#3FD2E8}
.tg-board{display:flex;flex-wrap:wrap;gap:14px 22px}
.tg-word{display:flex;gap:6px}
.tg-tile{width:42px;height:52px;border-bottom:3px solid #3A5560;display:flex;align-items:center;justify-content:center;font:700 28px 'Space Grotesk',Inter,sans-serif;color:#E8F1F3}
.tg-tile.hit{border-color:#3FD2E8;animation:tg-flip .3s ease-out}
.tg-tile.miss{color:#FF8A8A;border-color:#FF8A8A}
.tg-tile.ghost{color:#5E7880}
.tg-tile.sym{border-color:transparent;width:20px}
@keyframes tg-flip{from{transform:rotateX(90deg)}}
.tg-tools{display:flex;gap:8px}
.tg-tools:empty{display:none}
.ta-btn.ghost{background:transparent;border-color:transparent;color:#8FA6AD!important}
.tg-solve{display:flex;gap:8px}
.tg-solve input{flex:1;height:44px;padding:0 14px;border-radius:12px;border:1px solid #23363D;background:#0E191D;color:#E8F1F3;font:600 16px Inter,sans-serif;text-transform:uppercase;margin:0}
.tg-keys{display:flex;flex-direction:column;gap:8px;align-items:center}
.tg-keys:empty{display:none}
.tg-krow{display:flex;gap:6px;justify-content:center;width:100%}
.tg-key{flex:0 1 46px;height:52px;border-radius:10px;border:1px solid #23363D;background:#15242A;color:#E8F1F3!important;font:700 17px Inter,sans-serif!important;padding:0;cursor:pointer;touch-action:manipulation}
.tg-key:hover:not(:disabled){background:#1E2F36}
.tg-key.hit{background:#3FD2E8;border-color:#3FD2E8;color:#062026!important}
.tg-key.miss{background:#0E191D;color:#4A6168!important;border-color:#1A2A30}
.tg-key.pending{opacity:.6}
.tg-end:empty{display:none}
.tg-banner{display:flex;flex-direction:column;gap:6px;padding:16px;border-radius:14px}
.tg-banner strong{font:700 22px 'Space Grotesk',Inter,sans-serif}
.tg-banner.good{background:#A6E3B51a;border:1px solid #A6E3B555}
.tg-banner.bad{background:#FF8A8A14;border:1px solid #FF8A8A44}
.tg-banner .tg-btns{margin-top:6px}
.tg-confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.tg-confetti span{position:absolute;top:-10px;width:8px;height:12px;border-radius:2px;animation:tg-fall 2.2s cubic-bezier(.2,.6,.4,1) forwards}
@keyframes tg-fall{to{transform:translate(var(--dx),110vh) rotate(540deg);opacity:.2}}
/* Challenge dialog */
.tg-label{margin:6px 0 -4px!important;font-size:12px!important;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#8FA6AD!important}
.tg-dlg .tsv-form>input{height:42px}
.tg-pick{display:flex;flex-direction:column;gap:2px;max-height:220px;overflow-y:auto}
.tg-friend{display:flex;align-items:center;gap:10px;padding:8px;border-radius:12px;border:1px solid transparent;background:none;color:#E8F1F3!important;text-align:left;font:600 15px Inter,sans-serif;cursor:pointer}
.tg-friend>span:not(.tf-av){flex:1;min-width:0}
.tg-friend .tf-av{flex:none}
.tg-friend:hover{background:#15242A}
.tg-friend[aria-pressed=true]{border-color:#3FD2E8;background:#3FD2E80F}
.tg-friend .tf-ic{color:#3FD2E8}
.tg-seg{display:flex;gap:4px;padding:4px;border-radius:12px;background:#0E191D;border:1px solid #1E2F36}
.tg-seg button{flex:1;height:38px;border:0;border-radius:9px;background:none;color:#B9CCD1!important;font:600 14px Inter,sans-serif;cursor:pointer}
.tg-seg button[aria-pressed=true]{background:#15242A;color:#3FD2E8!important}
.tg-own{display:flex;flex-direction:column;gap:8px}
.tg-own input{height:42px;padding:0 14px;border-radius:12px;border:1px solid #23363D;background:#0E191D;color:#E8F1F3;font:15px Inter,sans-serif;margin:0}
.tg-own small{color:#8FA6AD;font-size:12px}
@media(max-width:759px){
  .tg-main{padding:12px 16px 96px!important}
  .tg-stats{grid-template-columns:repeat(2,1fr)}
  .tg-play{grid-template-columns:1fr;padding:16px;gap:12px}
  .tg-art .tg-robot{max-width:150px}
  .tg-tile{width:30px;height:42px;font-size:22px}
  .tg-word{gap:4px}.tg-board{gap:10px 16px;justify-content:center}
  .tg-status{justify-content:center}
  .tg-key{height:50px;flex:1 1 0;max-width:40px;font-size:16px!important}
  .tg-krow{gap:5px}
  .tg-game{flex-direction:column;align-items:flex-start}
}
.tg-key:disabled{opacity:1;cursor:default}
.tg-sub{display:block;color:#8FA6AD;font-size:13px;margin-top:2px}
.tg-top{align-items:flex-start}
@media(max-width:759px){
  body.tg-playing .tf-tabbar{display:none!important}
  body.tg-playing .tg-main{padding-bottom:24px!important}
  .tg-art .tg-robot{max-width:120px}
  .tg-title{font-size:20px!important}
  .tg-play{gap:10px}
  .tg-right{gap:14px}
}

/* Leaderboard */
.tg-lb{padding:18px;display:flex;flex-direction:column;gap:14px}
.tg-lb-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
#ttc-feed-app .tg-lb-head h2{margin:0;font:800 19px 'Space Grotesk',Inter,sans-serif}
.tg-lb-tabs{display:flex;gap:4px;background:#0E191D;border-radius:18px;padding:3px}
.tg-lb-tab{height:30px;padding:0 12px;border-radius:15px;border:0;background:none;color:#8FA6AD!important;font:600 13px Inter,sans-serif;cursor:pointer}
.tg-lb-tab[aria-selected=true]{background:#3FD2E8;color:#062026!important}
.tg-podium{display:grid;grid-template-columns:repeat(3,1fr);align-items:end;gap:10px;max-width:460px;margin:4px auto 6px;width:100%}
.tg-pod{display:flex;flex-direction:column;align-items:center;gap:4px;color:#E8F1F3!important;text-decoration:none;min-width:0;position:relative}
.tg-pod strong{font-size:14px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tg-pod-pts{font-size:12px;color:#8FA6AD}
.tg-pod-medal{font-size:24px;line-height:1}
.tg-pod .tf-av{box-shadow:0 0 0 3px #23363D}
.tg-pod.p1 .tf-av{box-shadow:0 0 0 3px #FFD54A,0 0 24px #FFD54A55}
.tg-pod.p2 .tf-av{box-shadow:0 0 0 3px #C9D8DC}
.tg-pod.p3 .tf-av{box-shadow:0 0 0 3px #D08A4E}
.tg-pod-step{width:100%;margin-top:6px;border-radius:12px 12px 0 0;background:linear-gradient(180deg,#1E2F36,#111D22);display:flex;align-items:flex-start;justify-content:center;padding-top:8px;font:800 20px 'Space Grotesk',Inter,sans-serif;color:#8FA6AD}
.tg-pod.p1 .tg-pod-step{height:78px;background:linear-gradient(180deg,#5A4A12,#2A2208);color:#FFD54A}
.tg-pod.p2 .tg-pod-step{height:56px}
.tg-pod.p3 .tg-pod-step{height:42px;color:#D08A4E}
.tg-pod.me strong{color:#3FD2E8}
.tg-lb-row{display:flex;align-items:center;gap:12px;padding:8px 10px;border-radius:12px;color:#E8F1F3!important;text-decoration:none}
.tg-lb-row:hover{background:#15242A}
.tg-lb-row.me{background:#0F2A30}
.tg-lb-rank{width:24px;text-align:center;font-weight:800;color:#8FA6AD}
.tg-lb-name{flex:1;min-width:0;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tg-lb-wins{font-size:13px;color:#8FA6AD}
.tg-lb-you{font-size:14px;color:#C9D8DC;text-align:center;margin:0}
.tg-lb-empty{text-align:center;padding:10px 0}

/* Daily Word */
.tdw-play{padding:18px 12px;display:flex;flex-direction:column;align-items:center;gap:14px}
.tdw-grid{display:grid;grid-template-rows:repeat(6,1fr);gap:6px}
.tdw-row{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}
.tdw-tile{width:min(14vw,58px);height:min(14vw,58px);border:2px solid #2A3F46;border-radius:8px;display:flex;align-items:center;justify-content:center;font:800 min(7vw,28px)/1 'Space Grotesk',Inter,sans-serif;color:#E8F1F3;text-transform:uppercase;background:#0E191D}
.tdw-tile.filled{border-color:#5A6E74;animation:tdw-pop .1s ease-out}
.tdw-tile.hit{background:#2E9E5B;border-color:#2E9E5B;color:#fff}
.tdw-tile.near{background:#C9A227;border-color:#C9A227;color:#fff}
.tdw-tile.miss{background:#2A3439;border-color:#2A3439;color:#C9D8DC}
.tdw-row.flip .tdw-tile{animation:tdw-flip .5s ease both}
.tdw-row.shake{animation:tdw-shake .4s}
@keyframes tdw-pop{50%{transform:scale(1.1)}}
@keyframes tdw-flip{0%{transform:rotateX(0);background:#0E191D;border-color:#5A6E74;color:#E8F1F3}49%{background:#0E191D;border-color:#5A6E74;color:#E8F1F3}50%{transform:rotateX(90deg)}100%{transform:rotateX(0)}}
@keyframes tdw-shake{20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}
.tdw-msg{min-height:20px;margin:0;font-weight:600;color:#F5C97F;text-align:center}
.tdw-kb{display:flex;flex-direction:column;gap:6px;width:100%;max-width:500px}
.tdw-kbrow{display:flex;gap:5px;justify-content:center}
.tdw-key{flex:1;max-width:44px;height:54px;border-radius:8px;border:0;background:#5A6E74;color:#fff!important;font:700 15px Inter,sans-serif;cursor:pointer;padding:0;touch-action:manipulation}
.tdw-key.wide{max-width:68px;flex:1.5;font-size:12px}
.tdw-key.hit{background:#2E9E5B}.tdw-key.near{background:#C9A227}.tdw-key.miss{background:#26333A;color:#8FA6AD!important}
.tdw-result{display:flex;flex-direction:column;gap:14px}
.tdw-card{padding:18px;display:flex;flex-direction:column;gap:12px}
#ttc-feed-app .tdw-card h2{margin:0;font:800 22px 'Space Grotesk',Inter,sans-serif;text-align:center}
#ttc-feed-app .tdw-card h3{margin:4px 0 0;font:700 14px Inter,sans-serif;color:#8FA6AD;text-transform:uppercase;letter-spacing:.06em}
.tdw-earned{text-align:center;color:#6FDCA0;font-weight:800;margin:0}
.tdw-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;text-align:center}
.tdw-stats strong{display:block;font:800 26px 'Space Grotesk',Inter,sans-serif}
.tdw-stats span{font-size:12px;color:#8FA6AD}
.tdw-dist{display:flex;flex-direction:column;gap:4px}
.tdw-dist>div{display:flex;align-items:center;gap:8px}
.tdw-dist b{width:14px;font-size:13px;color:#8FA6AD}
.tdw-bar{display:block;min-width:24px;padding:2px 8px;border-radius:4px;background:#2A3439;text-align:right;font-size:13px;font-weight:700}
.tdw-bar.me{background:#2E9E5B}
.tdw-crew{display:flex;align-items:center;gap:10px;padding:6px 4px;color:#E8F1F3!important;text-decoration:none;border-radius:10px}
.tdw-crew:hover{background:#15242A}
.tdw-crew .tdw-cname{flex:1}
.tdw-crew strong.w{color:#6FDCA0}.tdw-crew strong.l{color:#F28B82}
.tdw-art span.hit{background:#2E9E5B!important;color:#fff!important}.tdw-art span.near{background:#C9A227!important;color:#fff!important}
@media(prefers-reduced-motion:reduce){.tdw-row.flip .tdw-tile,.tdw-tile.filled,.tdw-row.shake{animation:none}}

/* Word Duel */
.twd-art span{position:relative}
.twd-art sub{position:absolute;right:3px;bottom:1px;font-size:9px;font-weight:700}
.twd-note{margin:0!important;font-size:14px}
.twd-play{padding:16px;display:flex;flex-direction:column;align-items:stretch;gap:12px}
.twd-play>*{flex-shrink:0}
.twd-scores{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px}
.twd-side{display:flex;align-items:center;gap:10px;min-width:0;padding:6px 10px 6px 6px;border-radius:999px;border:1px solid transparent}
.twd-side:last-child{flex-direction:row-reverse;text-align:right;padding:6px 6px 6px 10px}
.twd-side.up{border-color:#3FD2E8;background:#3FD2E812;box-shadow:0 0 18px #3FD2E822}
.twd-who{display:flex;flex-direction:column;min-width:0}
.twd-who small{font-size:12px;color:#8FA6AD;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.twd-who strong{font:800 24px/1 'Space Grotesk',Inter,sans-serif;color:#E8F1F3}
.twd-mid{display:flex;flex-direction:column;align-items:center;text-align:center}
.twd-mid strong{font-size:14px;color:#F5C97F}
.twd-mid small{font-size:12px;color:#8FA6AD}
.twd-wrap{display:flex;justify-content:center}
.twd-board{--n:11;display:grid;grid-template-columns:repeat(var(--n),1fr);gap:3px;width:min(100%,620px);padding:6px;border-radius:14px;background:#0A1418;border:1px solid #1E2F36}
.twd-board.shake{animation:tdw-shake .4s}
#ttc-feed-app .twd-sq{aspect-ratio:1;min-width:0;min-height:0;padding:0;border:0;border-radius:5px;background:#15242A;color:#5E7880;display:flex;align-items:center;justify-content:center;position:relative;container-type:inline-size;cursor:pointer;opacity:1}
.twd-sq.tw{background:#F2994A30!important;color:#F2994A!important}
.twd-sq.dw{background:#F5A6C02b!important;color:#F5A6C0!important}
.twd-sq.tl{background:#3FD2E826!important;color:#3FD2E8!important}
.twd-sq.dl{background:#A6E3B526!important;color:#A6E3B5!important}
.twd-sq.star .twd-lbl{font-size:56cqw}
.twd-lbl{font:800 30cqw/1 Inter,sans-serif;letter-spacing:-.02em;pointer-events:none}
.twd-sq.cursor{box-shadow:inset 0 0 0 2px #3FD2E8}
.twd-sq.cursor::after{content:'→';position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#3FD2E8;font:800 50cqw/1 Inter,sans-serif}
.twd-sq.cursor.down::after{content:'↓'}
.twd-sq.cursor .twd-lbl{opacity:0}
.twd-sq.drop{box-shadow:inset 0 0 0 2px #FFD54A}
.twd-tile{width:100%;height:100%;border-radius:5px;background:linear-gradient(180deg,#FBE0A6,#EDBF6A);color:#2A1A00;display:flex;align-items:center;justify-content:center;font:800 58cqw/1 'Space Grotesk',Inter,sans-serif;position:relative;box-shadow:inset 0 -2px 0 #C08F3A;user-select:none;-webkit-user-select:none}
.twd-tile sub{position:absolute;right:7%;bottom:4%;font:700 25cqw/1 Inter,sans-serif;vertical-align:baseline}
.twd-tile.blank{color:#8A5A00}
.twd-tile.twd-new{background:linear-gradient(180deg,#C9F6FC,#86E4F2);box-shadow:inset 0 -2px 0 #3FB3C6,0 0 0 2px #3FD2E8;touch-action:none;cursor:grab}
.twd-tile.twd-last{box-shadow:inset 0 -2px 0 #C08F3A,0 0 0 2px #FFD54A}
.twd-tile.pop{animation:twd-pop .5s ease-out both}
@keyframes twd-pop{0%{transform:scale(.6);opacity:.4}60%{transform:scale(1.12)}100%{transform:scale(1)}}
.twd-preview{min-height:22px;margin:0;text-align:center;font-weight:700;font-size:15px;color:#8FA6AD}
.twd-preview.ok{color:#6FDCA0}.twd-preview.warn{color:#F5C97F}
.twd-rack{display:flex;gap:6px;justify-content:center;min-height:60px;align-items:center;flex-wrap:nowrap}
#ttc-feed-app .twd-rtile{width:min(12.5vw,58px);aspect-ratio:1;padding:0;border:0;border-radius:8px;background:none;container-type:inline-size;touch-action:none;cursor:grab;transition:transform .12s;opacity:1}
.twd-rtile .twd-tile{border-radius:8px;box-shadow:inset 0 -3px 0 #C08F3A,0 3px 8px #0006}
.twd-rtile.sel{transform:translateY(-8px)}
.twd-rtile.sel .twd-tile{box-shadow:inset 0 -3px 0 #C08F3A,0 0 0 3px #3FD2E8}
.twd-rtile.marked{transform:translateY(-8px)}
.twd-rtile.marked .twd-tile{background:linear-gradient(180deg,#FFC2C2,#F28B82);box-shadow:inset 0 -3px 0 #B75D55,0 0 0 3px #F28B82}
.twd-empty-rack{font-size:14px}
.twd-ghost{position:fixed;left:0;top:0;width:48px;height:48px;z-index:9999;pointer-events:none;border-radius:8px;font-size:28px;box-shadow:0 10px 24px #000a,0 0 0 2px #3FD2E8}
.twd-ghost sub{font-size:11px}
body.twd-dragging{cursor:grabbing;user-select:none;-webkit-user-select:none}
.twd-btns{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.twd-btns .ta-btn{opacity:1}
.twd-btns .ta-btn:disabled{opacity:.45;cursor:default}
.twd-play-btn{min-width:110px}
.twd-hist{padding:16px 18px;display:flex;flex-direction:column;gap:4px}
#ttc-feed-app .twd-hist h2{margin:0 0 6px;font-size:17px}
.twd-move{display:flex;align-items:center;gap:10px;padding:6px 2px;font-size:14px;color:#C9D8DC}
.twd-move>span:nth-child(2){flex:1;min-width:0}
.twd-move small{color:#8FA6AD;font-size:12px;white-space:nowrap}
.twd-w{color:#F5C97F;letter-spacing:.04em}
.twd-rules{margin-top:8px;border-top:1px solid #1E2F36;padding-top:10px;font-size:14px;color:#C9D8DC}
.twd-rules summary{cursor:pointer;font-weight:700;color:#3FD2E8}
.twd-rules ul{margin:8px 0 0;padding-left:20px;display:flex;flex-direction:column;gap:6px}
.twd-blank-dlg{width:360px}
.twd-blank-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;margin-top:12px}
#ttc-feed-app .twd-blank-grid button{aspect-ratio:1;padding:0;border:0;border-radius:8px;background:linear-gradient(180deg,#FBE0A6,#EDBF6A);color:#2A1A00!important;font:800 20px 'Space Grotesk',Inter,sans-serif!important}
@media(max-width:759px){
  .tg-main:has(.twd-play){padding:8px 6px 24px!important}
  .tg-main:has(.twd-play) .tg-top{padding:0 8px}
  .twd-play{padding:10px 4px;gap:10px;border-radius:12px}
  .twd-board{gap:2px;padding:3px;border-radius:10px}
  #ttc-feed-app .twd-sq,.twd-tile{border-radius:3px}
  .twd-side{padding:4px 8px 4px 4px;gap:8px}.twd-side:last-child{padding:4px 4px 4px 8px}
  .twd-side .tf-av{width:34px!important;height:34px!important}
  .twd-who strong{font-size:21px}
  .twd-rack{gap:5px}
  .twd-btns .ta-btn.sm{padding:0 12px}
}
@media(prefers-reduced-motion:reduce){.twd-tile.pop,.twd-board.shake{animation:none}}
/* Game cards on the hub: picture on top so three fit side by side. */
@media(min-width:760px){
  .tg-cards .tg-game{flex-direction:column;align-items:stretch}
  .tg-cards .tg-game-art{width:auto;height:110px}
  .tg-cards .tg-game-art.tiles{flex-wrap:nowrap}
}
/* Word Duel on computers: the board on the left, scores, tiles and buttons on the right. */
@media(min-width:1000px){
  .twd-play{display:grid;grid-template-columns:minmax(0,1fr) 340px;grid-template-rows:auto auto auto auto auto 1fr;
    grid-template-areas:"board scores" "board end" "board preview" "board rack" "board btns" "board .";column-gap:24px;row-gap:14px;align-items:start}
  .twd-scores{grid-area:scores;grid-template-columns:1fr;gap:8px}
  .twd-scores .twd-mid{order:-1;flex-direction:row;justify-content:space-between;gap:8px;padding:0 4px}
  .twd-side:last-child{flex-direction:row;text-align:left;padding:6px 10px 6px 6px}
  .twd-play>.tg-end{grid-area:end}
  .twd-wrap{grid-area:board}
  .twd-preview{grid-area:preview;text-align:left;min-height:44px;display:flex;align-items:center;padding:0 12px;border-radius:12px;background:#0E191D}
  .twd-rack{grid-area:rack;gap:5px;justify-content:flex-start}
  #ttc-feed-app .twd-rtile{width:44px}
  .twd-btns{grid-area:btns;justify-content:flex-start}
  .twd-play-btn{flex:1 0 100%;justify-content:center}
}

/* Four in a Row and Tic-Tac-Toe (board games) */
.tbg-art{display:grid;gap:4px;padding:7px;border-radius:10px}
.tbg-art.four{grid-template-columns:repeat(5,15px);grid-auto-rows:15px;background:#1B4F9C}
.tbg-art.four span{border-radius:50%;background:#0E191D}
.tbg-art.four span.a{background:#3FD2E8}.tbg-art.four span.b{background:#FF9F43}
.tbg-art.ttt{grid-template-columns:repeat(3,24px);grid-auto-rows:24px;background:#23363D}
.tbg-art.ttt span{background:#0E191D;border-radius:6px;display:flex;align-items:center;justify-content:center;font:800 20px 'Space Grotesk',Inter,sans-serif}
.tbg-art.ttt span.x{color:#3FD2E8}.tbg-art.ttt span.o{color:#FF9F43}
.tbg-play{padding:20px;display:flex;flex-direction:column;align-items:center;gap:14px;position:relative;overflow:hidden}
.tbg-players{display:flex;align-items:center;justify-content:center;gap:14px;width:100%;flex-wrap:wrap}
.tbg-player{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:14px;background:#15242A;border:2px solid transparent;min-width:0}
.tbg-player.up{border-color:#3FD2E8;box-shadow:0 0 0 3px #3FD2E822}
.tbg-player>span:nth-child(2){display:flex;flex-direction:column;min-width:0}
.tbg-player small{color:#8FA6AD;font-size:12px}
.tbg-player strong{font-size:14px}
.tbg-player .tbg-piece{position:static;width:22px;height:22px;flex-shrink:0;font-size:14px}
.tbg-bot{width:36px;height:36px;border-radius:50%;background:#23363D;display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0}
.tbg-chip{display:flex;flex-shrink:0}
.tbg-vs{color:#8FA6AD;font-weight:700;font-size:13px}
.tbg-status{min-height:22px;font-weight:600;color:#C9D8DC;text-align:center}
.tbg-wrap{width:100%;display:flex;justify-content:center}
.tbg-board{--gap:8px;display:grid;grid-template-columns:repeat(var(--cols),1fr);gap:var(--gap);padding:12px;border-radius:18px;width:100%;user-select:none;-webkit-user-select:none;touch-action:manipulation}
.tbg-board.four{max-width:520px;background:linear-gradient(180deg,#2160B8,#1B4F9C);box-shadow:0 10px 30px #0006,inset 0 -6px 0 #0003;overflow:hidden}
.tbg-board.ttt{--gap:10px;max-width:360px;background:#23363D}
#ttc-feed-app .tbg-cell{position:relative;aspect-ratio:1;border:0;padding:0;margin:0;min-width:0;min-height:0;border-radius:50%;background:#0E191D;box-shadow:inset 0 4px 8px #0008;cursor:default;display:flex;align-items:center;justify-content:center;overflow:visible}
#ttc-feed-app .tbg-board.ttt .tbg-cell{border-radius:14px;box-shadow:none;background:#111D22}
#ttc-feed-app .tbg-board.live .tbg-cell{cursor:pointer}
#ttc-feed-app .tbg-board.ttt.live .tbg-cell:empty:hover{background:#15303A}
#ttc-feed-app .tbg-board.four.live[data-hover="0"] .tbg-cell[data-c="0"], #ttc-feed-app .tbg-board.four.live[data-hover="1"] .tbg-cell[data-c="1"], #ttc-feed-app .tbg-board.four.live[data-hover="2"] .tbg-cell[data-c="2"], #ttc-feed-app .tbg-board.four.live[data-hover="3"] .tbg-cell[data-c="3"], #ttc-feed-app .tbg-board.four.live[data-hover="4"] .tbg-cell[data-c="4"], #ttc-feed-app .tbg-board.four.live[data-hover="5"] .tbg-cell[data-c="5"], #ttc-feed-app .tbg-board.four.live[data-hover="6"] .tbg-cell[data-c="6"]{background:#13323C}
#ttc-feed-app .tbg-cell:focus-visible{outline:3px solid #FFD54A;outline-offset:2px}
.tbg-piece{position:absolute;inset:6%;border-radius:50%;display:flex;align-items:center;justify-content:center;font:800 clamp(34px,11vw,64px)/1 'Space Grotesk',Inter,sans-serif}
.tbg-board.four .tbg-piece.m1,.tbg-player .tbg-piece.m1{background:radial-gradient(circle at 35% 30%,#8BEBF7,#3FD2E8 55%,#1FA9BE)}
.tbg-board.four .tbg-piece.m2,.tbg-player .tbg-piece.m2{background:radial-gradient(circle at 35% 30%,#FFC98F,#FF9F43 55%,#D9771C)}
.tbg-board.ttt .tbg-piece{background:none;inset:0}
.tbg-board.ttt .tbg-piece.m1{color:#3FD2E8}.tbg-board.ttt .tbg-piece.m2{color:#FF9F43}
.tbg-player .tbg-piece{border-radius:50%}
.tbg-players .tbg-piece{font-size:0}
.tbg-piece.drop{animation:tbg-fall .42s cubic-bezier(.45,0,.75,1.2) both}
.tbg-board.ttt .tbg-piece.drop{animation:tbg-pop .25s ease-out both}
@keyframes tbg-fall{from{transform:translateY(var(--fall,-300%))}to{transform:none}}
@keyframes tbg-pop{from{transform:scale(.3);opacity:0}to{transform:none;opacity:1}}
#ttc-feed-app .tbg-cell.last{box-shadow:inset 0 4px 8px #0008,0 0 0 3px #FFD54A88}
#ttc-feed-app .tbg-board.ttt .tbg-cell.last{box-shadow:0 0 0 3px #FFD54A55}
#ttc-feed-app .tbg-cell.win{box-shadow:0 0 0 4px #FFD54A,0 0 18px #FFD54A99}
#ttc-feed-app .tbg-board.ttt .tbg-cell.win{background:#2A3A1E}
.tbg-play .tg-end{width:100%;max-width:520px}
.tbg-foot{display:flex;justify-content:center}
@media(max-width:759px){
  .tbg-play{padding:14px 10px;border-radius:0}
  .tbg-board{--gap:5px;padding:8px}
  .tbg-board.ttt{--gap:8px}
  .tbg-player{padding:6px 10px}
}
@media(prefers-reduced-motion:reduce){.tbg-piece.drop{animation:none}}

/* Daily Crate */
.t-common{--t:#9FB3BA;--t2:#5D7078}
.t-rare{--t:#3FD2E8;--t2:#1A7F8F}
.t-epic{--t:#C084FC;--t2:#7C3AED}
.t-legendary{--t:#FFD54A;--t2:#F59E0B}
.tcr-art{background:radial-gradient(circle at 50% 60%,#3A2A12,#0E191D 70%)!important}
.tcr-crate{position:relative;width:64px;height:58px;--w:64px}
.tcr-lid{position:absolute;left:-4px;right:-4px;top:0;height:16px;border-radius:5px;background:linear-gradient(#C98A3D,#9C6424);box-shadow:inset 0 -3px 0 #0003;transform-origin:10% 100%;transition:transform .4s}
.tcr-body{position:absolute;left:0;right:0;top:14px;bottom:0;border-radius:0 0 6px 6px;background:linear-gradient(#B97A33,#8A561C);box-shadow:inset 0 -5px 0 #0003;display:flex;align-items:center;justify-content:center;overflow:hidden}
.tcr-stripe{position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0 30%,#0000001a 30% 34%)}
.tcr-logo{position:relative;font:800 11px 'Space Grotesk',Inter,sans-serif;color:#3FD2E8;background:#0E191D;border-radius:4px;padding:1px 4px}
.tcr-crate.open .tcr-lid{transform:rotate(-28deg) translateY(-6px)}
.tg-game.tcr-ready .tcr-crate{animation:tcr-bob 2.4s ease-in-out infinite}
@keyframes tcr-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
.tcr-layout{display:flex;gap:16px;flex-wrap:wrap;align-items:flex-start}
.tcr-main{flex:2 1 420px;min-width:0;padding:24px!important;display:flex;flex-direction:column;align-items:center;gap:16px;position:relative;overflow:hidden;
  background:radial-gradient(circle at 50% 35%,#18323A,#111D22 65%)!important}
.tcr-side{flex:1 1 280px;min-width:0;display:flex;flex-direction:column;gap:16px}
.tcr-stage{min-height:300px;width:100%;display:flex;align-items:center;justify-content:center;position:relative}
#ttc-feed-app .tcr-open{background:none;border:0;padding:20px;margin:0;display:flex;flex-direction:column;align-items:center;gap:18px;cursor:pointer;color:#E8F1F3}
.tcr-open .tcr-crate{transform:scale(2.6);margin:60px 0 40px;filter:drop-shadow(0 10px 14px #0008);animation:tcr-bob 2.4s ease-in-out infinite}
.tcr-tap{font:700 16px Inter,sans-serif;background:#3FD2E8;color:#062026;border-radius:22px;padding:10px 22px}
.tcr-open:hover .tcr-tap{background:#7FE3F2}
.tcr-open.shake .tcr-crate{animation:tcr-shake .55s ease-in-out 2}
.tcr-open.shake .tcr-tap{opacity:.4}
@keyframes tcr-shake{0%,100%{transform:scale(2.6) rotate(0)}20%{transform:scale(2.7) rotate(-6deg)}40%{transform:scale(2.6) rotate(6deg)}60%{transform:scale(2.75) rotate(-4deg)}80%{transform:scale(2.6) rotate(4deg)}}
.tcr-reveal{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;position:relative;padding:20px}
.tcr-reveal.pop{animation:tcr-pop .5s cubic-bezier(.2,1.4,.4,1) both}
@keyframes tcr-pop{from{transform:scale(.3);opacity:0}to{transform:none;opacity:1}}
.tcr-burst{position:absolute;left:50%;top:70px;width:340px;height:340px;margin:-170px 0 0 -170px;border-radius:50%;
  background:repeating-conic-gradient(from 0deg,color-mix(in srgb,var(--t) 35%,transparent) 0 10deg,transparent 10deg 24deg);
  -webkit-mask:radial-gradient(circle,#000 30%,transparent 70%);mask:radial-gradient(circle,#000 30%,transparent 70%);animation:tcr-spin 14s linear infinite;pointer-events:none}
@keyframes tcr-spin{to{transform:rotate(360deg)}}
.tcr-em{position:relative;font-size:84px;line-height:1.1;filter:drop-shadow(0 6px 18px color-mix(in srgb,var(--t) 70%,transparent))}
.tcr-tier{position:relative;font:800 30px 'Space Grotesk',Inter,sans-serif;color:var(--t);letter-spacing:.02em;text-transform:uppercase}
.tcr-pts{position:relative;font:700 22px Inter,sans-serif;color:#E8F1F3}
.tcr-item{position:relative;font-size:15px;color:#FFE08A;font-weight:600}
.tcr-info{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}
.tcr-streak{display:flex;align-items:baseline;gap:8px;font-size:15px;color:#C9D8DC}
.tcr-streak span:first-child{font-size:24px}
.tcr-streak strong{font:800 32px 'Space Grotesk',Inter,sans-serif;color:#F2B26B}
#ttc-feed-app .tcr-info p{margin:0;max-width:440px}
.tcr-next{font-variant-numeric:tabular-nums;color:#8FA6AD;font-weight:600}
.tcr-odds,.tcr-crew,.tcr-hist{padding:16px!important;display:flex;flex-direction:column;gap:10px}
#ttc-feed-app .tcr-side h2{margin:0;font:700 16px 'Space Grotesk',Inter,sans-serif}
.tcr-odd{display:grid;grid-template-columns:12px 90px 1fr auto;align-items:center;gap:10px;font-size:14px}
.tcr-odd strong{color:var(--t)}
.tcr-odd span:nth-child(3){color:#8FA6AD;font-size:13px}
.tcr-odd em{font-style:normal;font-weight:700;color:#E8F1F3}
.tcr-dot{width:12px;height:12px;border-radius:50%;background:var(--t);box-shadow:0 0 8px var(--t)}
.tcr-drop{display:flex;align-items:center;gap:10px;font-size:14px;color:#C9D8DC!important}
.tcr-drop b{color:var(--t)}
.tcr-hist-row{display:flex;flex-wrap:wrap;gap:6px}
.tcr-chip{width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:18px;background:color-mix(in srgb,var(--t) 18%,#0E191D);border:1px solid color-mix(in srgb,var(--t) 50%,transparent)}
@media(max-width:759px){
  .tcr-main{padding:16px!important}
  .tcr-stage{min-height:260px}
  .tcr-open .tcr-crate{transform:scale(2.2)}
}
@media(prefers-reduced-motion:reduce){.tcr-burst,.tcr-open .tcr-crate,.tg-game.tcr-ready .tcr-crate,.tcr-reveal.pop{animation:none}}
