/* Tengeri Catan V0.1.1, WordPress-scoped display rules. No global theme overrides. */
.tcat{box-sizing:border-box;position:relative;left:50%;transform:translateX(-50%);width:calc(100vw - 20px);height:clamp(640px,calc(100dvh - 115px),1100px);margin:8px 0 16px;--cream:#f7e8c9;--navy:#204663;color:#3c281a;font-family:system-ui,-apple-system,'Segoe UI',sans-serif;font-size:15px;line-height:1.2}
body.admin-bar .tcat{height:clamp(640px,calc(100dvh - 48px),1100px)}
body:not(.admin-bar) .tcat{height:clamp(640px,calc(100dvh - 16px),1100px)}
.tcat *{box-sizing:border-box}.tcat button{font:inherit;cursor:pointer}.tcat [hidden]{display:none!important}
.tcat:fullscreen{height:100dvh;width:100vw;margin:0;left:0;transform:none}
.tcat-shell{height:100%;width:100%;display:grid;grid-template-rows:110px minmax(0,1fr) 23px;background:#ead5b1;border:1px solid #c7ab7d;border-radius:14px;overflow:hidden;box-shadow:0 8px 28px #65442c30}
.tcat-topbar{position:relative;display:grid;grid-template-columns:150px minmax(0,1fr) 116px;grid-template-rows:minmax(40px,1fr) 48px;align-items:center;column-gap:12px;row-gap:4px;padding:6px 10px;background:linear-gradient(#fff4dd,#e6c89d);box-shadow:0 2px 6px #866b482e;z-index:3}
.tcat-brand{grid-column:1;grid-row:1 / span 2;display:flex;align-items:center;justify-content:center;min-width:0;min-height:0}.tcat-brand img{display:block;width:140px;height:98px;object-fit:contain;filter:drop-shadow(0 2px 2px #60421c30)}
.tcat-prompt{display:flex;align-items:center;justify-content:center;text-align:center;flex-wrap:wrap;gap:6px;min-width:0;padding:8px 12px;border-radius:11px;border:1px solid #96b5df;background:linear-gradient(#e6f3ff,#bbdcff);color:#134c85;flex:1;font-size:14px;font-weight:700;overflow:hidden}
.tcat-prompt{grid-column:2;grid-row:1}
.tcat-prompt b{white-space:nowrap}.tcat-prompt span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.tcat-actions{grid-column:2;grid-row:2;display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;white-space:nowrap}.tcat-actions button,.tcat-symbol-btn{border:1px solid #bf9c68;border-radius:9px;padding:8px 13px;background:linear-gradient(#fff7ea,#ecce9e);color:#5b391f;font-weight:700;box-shadow:0 2px 3px #6c451e36}
.tcat-actions button{font-size:13px;min-height:39px}.tcat-actions button.tcat-main-btn{background:linear-gradient(#5ca9ff,#0472cf);color:white;border-color:#1267b1}.tcat-actions button.tcat-visual-buy{background:linear-gradient(#9b7bea,#7657c1);color:#fff;border-color:#61439f}.tcat-actions button.tcat-visual-trade{background:linear-gradient(#25a99a,#0e897b);color:#fff;border-color:#0a7469}.tcat-actions button.tcat-visual-pass{background:linear-gradient(#d7945e,#b97545);color:#fff;border-color:#965c34}.tcat-actions button.tcat-undo{background:linear-gradient(#fff4dd,#efcf9f)}.tcat-actions button.tcat-undo:disabled{opacity:.72;cursor:not-allowed;box-shadow:none}.tcat-actions button.tcat-continue{background:linear-gradient(#9bd077,#5aa847);color:#fff;border-color:#48883d}
.tcat-symbol-btn{grid-column:3;grid-row:1;justify-self:end;width:42px;height:40px;padding:0;display:grid;place-items:center}.tcat-symbol-btn svg{width:36px;height:36px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.tcat-content{display:grid;grid-template-columns:180px minmax(0,1fr) 264px;min-height:0;transition:grid-template-columns .14s ease}
.tcat-left-closed .tcat-content{grid-template-columns:35px minmax(0,1fr) 264px}.tcat-right-closed .tcat-content{grid-template-columns:180px minmax(0,1fr) 35px}.tcat-left-closed.tcat-right-closed .tcat-content{grid-template-columns:35px minmax(0,1fr) 35px}
.tcat-own,.tcat-public{position:relative;min-width:0;overflow:hidden;background:linear-gradient(105deg,#f6e7c9,#e8cfab)}
.tcat-own{border-right:2px solid #ccb68e}.tcat-public{border-left:2px solid #cdb58d}
.tcat-panel-head{height:30px;display:flex;align-items:center;justify-content:center;gap:4px;padding:2px 8px 0;position:relative;z-index:2}.tcat-panel-title{position:absolute;left:50%;transform:translateX(-50%);max-width:calc(100% - 56px);font-size:12px;font-weight:800;color:#614721;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;text-transform:uppercase}
.tcat-collapse{flex:none;width:34px;height:28px;z-index:2;border:1px solid #ae8955;background:#fff9ed;color:#563915;border-radius:6px;display:grid;place-items:center;font-size:0;line-height:normal;font-weight:900;opacity:1;box-shadow:0 1px 2px #614d2433;padding:0}.tcat-collapse-icon{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;transition:transform .12s ease}.tcat-collapse:hover,.tcat-collapse:focus-visible{background:#fff;color:#1a5f99;outline:2px solid #4796ce}
.tcat-own .tcat-collapse{position:absolute;right:8px}.tcat-public .tcat-collapse{position:absolute;left:8px}
.tcat-own-body{padding:4px 8px 8px;overflow-y:auto;height:calc(100% - 30px)}.tcat-own-row{border:1px solid #e3ceb0;background:linear-gradient(110deg,#fcf2e2,#f4e4cc);box-shadow:0 1px 2px #614d2433;border-radius:12px;height:71px;margin-bottom:6px;display:flex;align-items:center;justify-content:space-between;padding:4px 8px}
.tcat-own-row img{height:58px;width:58px;object-fit:contain;flex:none}.tcat-own-row img[src*="/tegla.png"]{filter:hue-rotate(8deg) saturate(.9)}.tcat-own-row strong{font-size:26px;font-weight:850;font-variant-numeric:tabular-nums}.tcat-own-row.tcat-empty img{filter:grayscale(.6);opacity:.55}.tcat-own-row.tcat-empty strong{color:#9f907e}
.tcat-resources .tcat-own-row img[src*="/barany.png"],.tcat-resources .tcat-own-row img[src*="/erc.png"]{border-radius:50%}
.tcat-own-divider{margin:14px 3px 10px;border-top:2px solid #bfa37b}.tcat-figures-title{text-align:center;font-size:12px;font-weight:800;color:#614721;margin:0 0 7px;text-transform:uppercase}.tcat-figures .tcat-own-row{height:56px;margin-bottom:5px}.tcat-figures .tcat-own-row img{height:51px;width:63px}.tcat-figures .tcat-own-row strong{font-size:20px}
.tcat-left-closed .tcat-own-body,.tcat-right-closed .tcat-public-body{display:none}.tcat-left-closed .tcat-panel-head,.tcat-right-closed .tcat-panel-head{justify-content:center;padding:2px 0}.tcat-left-closed .tcat-panel-title,.tcat-right-closed .tcat-panel-title{display:none}.tcat-left-closed .tcat-own .tcat-collapse,.tcat-right-closed .tcat-public .tcat-collapse{position:static}
.tcat-map{position:relative;min-width:0;min-height:0;background:#ead6b0;overflow:hidden}.tcat-board-viewport{position:absolute;inset:0;overflow:hidden;touch-action:none;cursor:grab;user-select:none}.tcat-board-viewport:active{cursor:grabbing}
.tcat-board-stage{position:absolute;left:0;top:0;transform-origin:0 0;background-repeat:no-repeat;background-position:-300px -90px;background-size:1920px 1080px;will-change:transform}
.tcat-piece-overlay{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.tcat-zoom{position:absolute;right:12px;bottom:9px;display:flex;align-items:center;background:#fff5e2e0;border:1px solid #c4a981;border-radius:12px;overflow:visible;box-shadow:0 2px 5px #51412833}
.tcat-zoom::before{content:"Max. 200%";position:absolute;right:0;bottom:calc(100% + 4px);padding:3px 9px;border:1px solid #c9a56d;border-radius:10px;background:#fff8e7;color:#684b28;font-size:10px;font-weight:800;white-space:nowrap}
.tcat-zoom button{border:none;background:transparent;font-size:19px;font-weight:700;padding:4px 10px}.tcat-zoom button.tcat-zoom-fit{display:grid;place-items:center;padding:4px 9px}.tcat-zoom-icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.7;stroke-linecap:round;stroke-linejoin:round}.tcat-zoom-label{min-width:42px;text-align:center;font-size:12px;font-weight:700}
.tcat-public{height:100%}.tcat-public-body{position:relative;padding:4px 6px 8px;display:flex;flex-direction:column;height:calc(100% - 30px);min-height:0;gap:8px}.tcat-players{display:flex;flex-direction:column;gap:7px;flex:none}.tcat-player{border:1px solid #c6b399;border-radius:12px;background:#fff7e9;overflow:hidden;box-shadow:0 1px 3px #775b353b}.tcat-player.is-active{outline:2px solid #2687d7}
.tcat-player header{display:flex;align-items:center;justify-content:space-between;padding:4px 7px;height:38.4px;font-size:16.8px;font-weight:800}.tcat-player header>span{display:flex;align-items:center;gap:6px}.tcat-player header strong{font-size:26.4px}.tcat-player header small{font-size:13.2px}.tcat-dot{display:inline-block;width:14.4px;height:14.4px;border-radius:50%;background:var(--player)}
.tcat-player--piros{--player:#e1272b;--player-bg:#ffe0df}.tcat-player--kek{--player:#147cdd;--player-bg:#d7edff}.tcat-player--zold{--player:#00b94b;--player-bg:#e3f9cb}.tcat-player--lila{--player:#9b1bce;--player-bg:#efd6fa}
.tcat-player header{color:#38271d;background:var(--player-bg)}.tcat-statrow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:center;height:37.2px;gap:1px;padding:1px 4px}.tcat-statrow>span{display:flex;justify-content:center;align-items:center;gap:2px;min-width:0;font-size:15.6px}.tcat-statrow img{width:32.4px;height:30px;object-fit:contain}.tcat-statrow img.tcat-stat-icon{width:30px;height:30px}.tcat-statrow b{font-variant-numeric:tabular-nums}
.tcat-logarea{position:relative;border:1px solid #c7b395;border-radius:12px;background:#fff6e5;min-height:65px;flex:1;display:flex;flex-direction:column;overflow:hidden}.tcat-logarea h3{position:relative;flex:none;font-size:12px;font-weight:800;text-align:center;text-transform:uppercase;margin:0;padding:8px 36px;border-bottom:1px solid #e2ccb0}.tcat-logarea h3>span{display:block}.tcat-log-toggle{position:absolute;right:4px;top:50%;width:28px;height:24px}.tcat-public .tcat-log-toggle{left:auto;right:4px;width:28px;height:24px}.tcat-logarea .tcat-collapse-icon{width:18px;height:18px}.tcat-log{min-height:0;overflow-y:auto;flex:1;padding:8px}.tcat-event{padding:8px 4px;font-size:12px;border-bottom:1px solid #e2d6c6;color:#553b22}.tcat-event-dice{display:inline-flex;vertical-align:middle;align-items:center;gap:3px;margin-left:3px}.tcat-event-die{position:relative;display:inline-block;flex:none;width:22px;height:22px;border:1px solid #ffffff80;border-radius:5px;box-shadow:inset 1px 1px 3px #ffffff80,inset -2px -2px 4px #0005,0 1px 2px #442b1b66}.tcat-event-die--red{background:linear-gradient(145deg,#ff746b 0%,#ed151c 38%,#a8000c 100%)}.tcat-event-die--gold{background:linear-gradient(145deg,#fff3a8 0%,#ffcb20 40%,#c98500 100%)}.tcat-event-pip{position:absolute;width:4px;height:4px;border-radius:50%;transform:translate(-50%,-50%);box-shadow:inset 1px 1px 1px #fff9,0 1px 1px #25180d66}.tcat-event-die--red .tcat-event-pip{background:radial-gradient(circle at 35% 30%,#fff98a,#ffd300 60%,#e89a00)}.tcat-event-die--gold .tcat-event-pip{background:radial-gradient(circle at 35% 30%,#ff8b78,#de1821 64%,#97000a)}
.tcat-log-expanded .tcat-public-body>.tcat-logarea{position:absolute;inset:0;z-index:4;min-height:0;flex:none}
body.tengeri-catan-game-page>.wp-site-blocks>footer.wp-block-template-part{display:none!important}
.tcat-demo{background:#f1ddb9;border-top:1px solid #d7bd96;color:#846b43;font-size:10px;display:flex;align-items:center;justify-content:center;text-align:center;padding:2px 6px}
@media(max-width:1200px){.tcat-content{grid-template-columns:140px minmax(0,1fr) 220px}.tcat-left-closed .tcat-content{grid-template-columns:35px minmax(0,1fr) 220px}.tcat-right-closed .tcat-content{grid-template-columns:140px minmax(0,1fr) 35px}.tcat-topbar{grid-template-columns:130px minmax(0,1fr) 42px;column-gap:8px}.tcat-brand img{width:124px;height:94px}.tcat-prompt{font-size:12px}.tcat-actions{gap:6px}.tcat-actions button{padding:7px 9px;font-size:12px}.tcat-own-row img{width:49px;height:49px}.tcat-own-row strong{font-size:22px}}
@media(max-width:800px){.tcat{width:calc(100vw - 8px);min-width:0;height:clamp(570px,90dvh,880px)}.tcat-shell{grid-template-rows:142px minmax(0,1fr) 23px}.tcat-topbar{grid-template-columns:82px minmax(0,1fr) 36px;grid-template-rows:40px 82px;gap:4px 5px;padding:5px}.tcat-brand img{width:80px;height:122px}.tcat-content{grid-template-columns:85px minmax(0,1fr) 35px}.tcat-own-body{padding:4px 3px 4px}.tcat-own-row{height:62px;padding:2px 4px}.tcat-own-row img{width:43px;height:43px}.tcat-own-row strong{font-size:18px}.tcat-panel-title{display:none}.tcat-panel-head{justify-content:space-between;padding:2px 3px}.tcat-left-closed .tcat-panel-head,.tcat-right-closed .tcat-panel-head{justify-content:center;padding:2px 0}.tcat-right-closed .tcat-content{grid-template-columns:85px minmax(0,1fr) 35px}.tcat-public-body{display:none}.tcat-prompt{padding:6px;font-size:11px}.tcat-prompt span{display:none}.tcat-actions{align-content:center;display:grid;grid-template-columns:repeat(3,max-content);gap:5px;white-space:normal}.tcat-actions button{font-size:10px;padding:5px 7px;min-height:32px}.tcat-symbol-btn{width:34px;height:34px}.tcat-symbol-btn svg{width:29px;height:29px}}

/* On narrow screens, open the player/log panel as a drawer over the board. */
@media(max-width:800px){.tcat-content{position:relative}.tcat-public{position:absolute;top:0;right:0;bottom:0;width:min(230px,82vw);z-index:5;box-shadow:0 0 12px #513b2455;transition:width .14s ease}.tcat-right-closed .tcat-public{width:35px}.tcat-public-body{display:flex}.tcat-right-closed .tcat-public-body{display:none}}

/* Animated roll: six-face CSS dice echo the approved red/yellow glossy dice. */
.tcat-dice-overlay{position:absolute;inset:0;z-index:20;pointer-events:none;overflow:visible}
.tcat-dice-dock{position:absolute;right:clamp(250px,19.2vw,300px);top:56px;width:92px;height:48px;pointer-events:none}
.tcat-die{position:absolute;left:50%;top:0;width:72px;height:72px;perspective:420px;transform:translate(-50%,-50%) scale(.82);transform-style:preserve-3d;filter:drop-shadow(0 8px 5px #34200b55)}
.tcat-die-cube{position:absolute;inset:0;transform-style:preserve-3d}
.tcat-die-face{position:absolute;inset:0;border-radius:11px;border:1px solid #ffffff80;backface-visibility:hidden;box-shadow:inset 2px 2px 5px #ffffff80,inset -3px -4px 7px #0005,0 1px 3px #442b1b66}
.tcat-die--red .tcat-die-face{background:linear-gradient(145deg,#ff746b 0%,#ed151c 38%,#a8000c 100%)}
.tcat-die--gold .tcat-die-face{background:linear-gradient(145deg,#fff3a8 0%,#ffcb20 40%,#c98500 100%)}
.tcat-die-face--front{transform:translateZ(36px)}.tcat-die-face--back{transform:rotateY(180deg) translateZ(36px)}
.tcat-die-face--right{transform:rotateY(90deg) translateZ(36px)}.tcat-die-face--left{transform:rotateY(-90deg) translateZ(36px)}
.tcat-die-face--top{transform:rotateX(90deg) translateZ(36px)}.tcat-die-face--bottom{transform:rotateX(-90deg) translateZ(36px)}
.tcat-pip{position:absolute;width:15px;height:15px;border-radius:50%;transform:translate(-50%,-50%);box-shadow:inset 1px 1px 3px #fff9,0 1px 2px #25180d66}
.tcat-die--red .tcat-pip{background:radial-gradient(circle at 35% 30%,#fff98a,#ffd300 60%,#e89a00)}
.tcat-die--gold .tcat-pip{background:radial-gradient(circle at 35% 30%,#ff8b78,#de1821 64%,#97000a)}
.tcat-die--result .tcat-die-face:not(.tcat-die-face--front){display:none}
@media(max-width:1200px){.tcat-topbar{grid-template-columns:130px minmax(0,1fr) 108px}.tcat-dice-dock{right:18px}}
@media(max-width:1400px){.tcat-dice-dock{right:18px}}
@media(max-width:800px){.tcat-topbar{grid-template-columns:82px minmax(0,1fr) 64px}.tcat-dice-dock{right:18px;top:87px;width:58px;height:40px}.tcat-die{width:64px;height:64px}.tcat-die-face--front{transform:translateZ(32px)}.tcat-die-face--back{transform:rotateY(180deg) translateZ(32px)}.tcat-die-face--right{transform:rotateY(90deg) translateZ(32px)}.tcat-die-face--left{transform:rotateY(-90deg) translateZ(32px)}.tcat-die-face--top{transform:rotateX(90deg) translateZ(32px)}.tcat-die-face--bottom{transform:rotateX(-90deg) translateZ(32px)}.tcat-pip{width:13px;height:13px}}
