@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600&display=swap');
:root{--bg:#f3f1e9;--ink:#153b32;--muted:#738079;--green:#b9d9a0;--coral:#d88b74;--line:#dadfd3}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px 'DM Sans',system-ui,sans-serif}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #d7ac52;outline-offset:4px}header{height:86px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:24px;max-width:1400px;margin:auto;padding:0 48px}.brand{display:flex;align-items:center;gap:7px;font-size:24px;letter-spacing:-1px;font-weight:700;text-decoration:none;color:var(--ink)}.brand-light{font-weight:400}.logo{display:grid;place-items:center;background:var(--ink);color:#e6ecd7;width:34px;height:38px;border-radius:8px;font-size:29px;margin-right:4px}.tag{font-size:12px;color:var(--muted);margin-right:auto}.icon{border:1px solid #c3cbbd;border-radius:50%;background:none;width:28px;height:28px;color:var(--ink)}.quiet{border:0;background:none;color:var(--ink);font-size:12px;font-weight:600}main{max-width:1304px;margin:auto;padding:35px 48px 20px}.heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700}h1{font:500 42px/1.12 'Playfair Display',Georgia,serif;letter-spacing:-1px;margin:10px 0 0}.mode{border:1px solid #d9dfd1;border-radius:9px;padding:14px 17px;font-size:10px;letter-spacing:1.2px;font-weight:700}.mode i{display:inline-block;background:#719060;width:6px;height:6px;border-radius:50%;margin-right:8px}.mode small{display:block;font-size:11px;letter-spacing:0;font-weight:400;color:var(--muted);margin-top:6px}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:26px}.arena{border-radius:18px;background:#163f34;color:#f8f5e8;overflow:hidden;box-shadow:0 12px 30px #153b3214}.arena-top{display:flex;justify-content:space-between;padding:20px 25px;color:#bfd1bd;font-size:9px;letter-spacing:1.5px}.arena-top b{margin:0 7px;font-weight:400;color:#7d9f86}.table{height:338px;position:relative;background:radial-gradient(ellipse,#2b5c47 0,#1b4738 60%,#163f34 90%)}.table-ring{position:absolute;inset:37px 61px 44px;border:1px solid #8da98925;border-radius:50%;box-shadow:0 0 0 15px #8da98906}.seat{position:absolute;display:flex;align-items:center;flex-direction:column;gap:4px;z-index:2}.seat strong{font-size:12px;font-weight:500}.seat small{font-size:7px;letter-spacing:1.2px;color:#b2c8b5}.avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;color:#1b4635;background:#ccdeb7;font-size:13px;border:3px solid #365a46}.avatar.coral{background:#e0ad92;color:#5c382e}.north{top:0;left:50%;transform:translateX(-50%)}.west{top:120px;left:24px}.east{top:120px;right:24px}.backs{display:flex;margin-top:5px;padding-right:10px}.back{width:17px;height:25px;margin-right:-10px;border-radius:3px;border:1px solid #e4dfc9;background:repeating-linear-gradient(45deg,#426954,#426954 2px,#5e8068 2px,#5e8068 3px);box-shadow:0 2px 4px #0003}.center-mark{position:absolute;left:50%;top:49%;transform:translate(-50%,-50%);font-size:60px;color:#b0c89719;text-align:center}.center-mark span{display:block;font-size:9px;letter-spacing:4px}.you-marker{position:absolute;bottom:7px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:8px;font-size:12px;white-space:nowrap}.you-marker .avatar{width:28px;height:28px}.your-turn{font-size:7px;letter-spacing:1px;border:1px solid #bed9937a;border-radius:4px;padding:5px;color:#d4e7ac;margin-left:4px}.seat.active .avatar{box-shadow:0 0 0 2px #e4d18a}.hand-zone{background:#12392f;padding:16px 24px 22px;min-height:163px;border-top:1px solid #8eae9226}.hand-label{display:flex;justify-content:space-between;font-size:8px;letter-spacing:1.5px;color:#c1d3bb;margin-bottom:15px}.hand-label b{font-weight:400;color:#82a28e;margin-left:8px}.hand-label>span:last-child{letter-spacing:0;font-size:10px}#hand{display:flex;justify-content:center;gap:7px;min-height:98px;align-items:flex-end}.card{width:61px;height:91px;border:1px solid #e2e0d5;border-radius:7px;background:#fffdf5;color:#263c36;box-shadow:0 4px 6px #0002;position:relative;flex-shrink:0;padding:7px;display:flex;flex-direction:column;align-items:flex-start;text-align:left;font-family:Georgia,serif;transition:transform .18s,opacity .18s}.card.red{color:#b75342}.card .rank{font-size:20px;line-height:1}.card .small-suit{font-size:16px;line-height:1.1}.card .big-suit{position:absolute;right:10px;bottom:10px;font-size:31px}.card:disabled{cursor:default}.card.illegal{opacity:.36;filter:saturate(.5)}button.card:not(:disabled):hover{transform:translateY(-12px)}button.card:not(:disabled){border-bottom:3px solid #d9dfc0}#played{position:absolute;inset:0;pointer-events:none}#played .card{position:absolute;width:52px;height:75px;animation:appear .25s ease-out}#played .card .rank{font-size:18px}#played .card .big-suit{font-size:25px}.played0{left:calc(50% - 26px);top:202px;transform:rotate(-5deg)}.played1{left:calc(50% + 45px);top:134px;transform:rotate(10deg)}.played2{left:calc(50% - 26px);top:99px;transform:rotate(3deg)}.played3{left:calc(50% - 98px);top:134px;transform:rotate(-12deg)}.card.winner{outline:3px solid #d5c384;box-shadow:0 0 20px #d5c38444}@keyframes appear{from{opacity:0;margin-top:-15px}to{opacity:1;margin-top:0}}aside section{border:1px solid var(--line);border-radius:12px}.score-panel{padding:19px 20px;background:#f9f8f2}.panel-top{font-size:9px;letter-spacing:1.4px;display:flex;justify-content:space-between;margin-bottom:20px}.score-row{display:flex;align-items:center;justify-content:space-between;margin:16px 0}.score-row>div{position:relative;padding-left:17px}.score-row strong{font-size:13px;font-weight:500}.score-row small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.score-row>b{font-size:30px;font-weight:500}.dot{position:absolute;left:0;top:5px;background:#6c8c5e;width:7px;height:7px;border-radius:50%}.coral-bg{background:var(--coral)}.goal{border-top:1px solid var(--line);padding-top:13px;font-size:10px;color:var(--muted);display:flex;justify-content:space-between}.goal span{color:var(--ink)}.action-panel{margin-top:14px;padding:20px;background:#e8ecdf;min-height:260px}.action-panel .eyebrow{font-size:8px;letter-spacing:1.6px;color:#617353}h2{font:500 23px 'Playfair Display',Georgia,serif;margin:10px 0}.action-panel p{font-size:11px;line-height:1.7;color:#6a7666;min-height:38px;margin:10px 0 16px}#actions{display:flex;gap:7px}.suit-choice{background:#f9f9f0;border:1px solid #cbd4bf;width:calc(25% - 5px);height:43px;border-radius:7px;color:#254d40;font-size:26px}.suit-choice.red{color:#ad5b49}.suit-choice:hover{background:#d1dfba;transform:translateY(-2px)}.primary{background:var(--ink);color:#f4f3e7;padding:12px;border:0;border-radius:7px;width:100%;font-size:11px}.trick-score{margin-top:22px;border-top:1px solid #cfd7c3;padding-top:15px}.trick-score>span{font-size:8px;letter-spacing:1.3px;color:#7c8973}.trick-score>div:not(.track){display:flex;align-items:center;justify-content:space-between;margin:8px 0}.trick-score b{font-size:25px;font-weight:500}.trick-score div>span{font-size:8px;letter-spacing:1px}.trick-score em{font-style:normal;margin:0 8px;color:#96a08b}.track{display:flex;gap:4px}.track i{height:4px;flex:1;background:#d2d9c6;border-radius:2px}.track i.us{background:#6b8d58}.track i.them{background:#c88d76}#carry{font-size:10px;margin-top:9px;color:#7d7355}.tip{border:0;display:flex;align-items:start;gap:12px;margin:20px 5px 12px}.tip>span{font-size:23px;color:#8c9a75}.tip p{font-size:10px;line-height:1.7;color:var(--muted);margin:0}.history-btn{border:0;color:#5f7666;background:none;font-size:10px;padding:5px}footer{display:flex;justify-content:space-between;font-size:9px;color:#92998b;margin-top:25px;padding-bottom:10px}dialog{border:0;border-radius:18px;background:#f5f3e9;color:var(--ink);padding:30px;max-width:450px;width:calc(100% - 30px);box-shadow:0 20px 100px #0004}dialog::backdrop{background:#09271de0;backdrop-filter:blur(4px)}dialog h2{font-size:30px}dialog p,dialog li{font-size:13px;line-height:1.8}dialog a{color:#496b45}.close{float:right;border:0;background:none;font-size:26px;color:var(--ink)}.last-cards{display:flex;gap:12px;flex-wrap:wrap}.last-cards small{display:block;margin:7px 0;font-size:10px}
@media(min-width:1400px){main{padding-top:40px}.table{height:365px}.played0{top:219px}.played1,.played3{top:151px}.played2{top:116px}.west,.east{top:135px}}
@media(max-width:1000px){header{padding:0 24px}main{padding:28px 24px}.game-layout{grid-template-columns:minmax(0,1fr) 250px;gap:16px}.card{width:49px;height:81px}#hand{gap:4px}.hand-zone{padding:16px}.table-ring{inset:37px 25px 44px}.west{left:12px}.east{right:12px}.tag{font-size:10px}}
@media(max-width:760px){header{height:67px;padding:0 18px;gap:14px}.brand{font-size:20px}.tag{display:none}.icon{margin-left:auto}.quiet{font-size:10px}main{padding:22px 12px}.heading{padding:0 6px;margin-bottom:20px}h1{font-size:29px}.eyebrow{font-size:8px}.mode{font-size:8px;padding:11px}.mode small{font-size:9px}.game-layout{grid-template-columns:1fr;gap:15px}.arena-top{padding:17px;font-size:8px}.table{height:319px}.table-ring{inset:32px 20px 36px}.north{top:0}.west{top:115px;left:14px}.east{top:115px;right:14px}.seat .avatar{width:31px;height:31px}.seat small{font-size:6px}.played0{top:192px}.played2{top:94px}.played1,.played3{top:138px}.played1{left:calc(50% + 26px)}.played3{left:calc(50% - 79px)}#played .card{width:49px;height:71px}.hand-zone{padding:15px 10px 18px;min-height:135px}.hand-label{font-size:7px;padding:0 3px;margin-bottom:15px}.hand-label>span:last-child{font-size:9px}#hand{gap:0;min-height:82px;padding-left:0}.card{width:calc((100vw - 65px)/8 + 7px);max-width:60px;height:80px;margin-right:-5px;padding:5px}.card .rank{font-size:18px}.card .small-suit{font-size:13px}.card .big-suit{font-size:25px;right:6px;bottom:9px}aside{display:grid;grid-template-columns:1fr 1.3fr;gap:10px;align-items:start}.score-panel{padding:15px 13px}.panel-top{font-size:7px;letter-spacing:1px;margin-bottom:14px}.score-row{margin:13px 0}.score-row strong{font-size:11px}.score-row small{font-size:8px}.score-row>b{font-size:27px}.goal{font-size:8px;gap:7px}.action-panel{margin:0;padding:15px;min-height:0}h2{font-size:21px}.action-panel p{font-size:10px;min-height:0;margin-bottom:11px}.suit-choice{height:36px;font-size:23px}.trick-score{margin-top:13px;padding-top:10px}.tip{grid-column:1/-1;margin:0 4px;align-items:center}.tip p{font-size:10px}.history-btn{grid-column:1/-1;text-align:left}.last-cards .card{width:54px}footer{font-size:8px;margin-top:17px;gap:20px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.language-switch{display:flex;gap:3px;padding:3px;border:1px solid #cbd4bf;border-radius:8px;flex-shrink:0}.language-switch button{border:0;background:transparent;border-radius:5px;color:#57715d;padding:7px 10px;font-size:11px;line-height:1.4}.language-switch button[aria-pressed=true]{background:#153b32;color:#fffdf5}.language-switch button:hover{background:#dce5d0}.language-switch button[aria-pressed=true]:hover{background:#204f3f}html[lang=si] h1,html[lang=si] h2{font-family:system-ui,sans-serif;line-height:1.55;letter-spacing:0}html[lang=si] h1{font-size:34px}html[lang=si] .eyebrow,html[lang=si] .arena-top,html[lang=si] .hand-label,html[lang=si] .panel-top,html[lang=si] .seat small,html[lang=si] .your-turn,html[lang=si] .trick-score>span{letter-spacing:0;line-height:1.7}html[lang=si] .mode{letter-spacing:0;line-height:1.6}html[lang=si] .action-panel h2{font-size:20px}html[lang=si] .action-panel p{line-height:1.9}html[lang=si] .score-row strong{font-size:12px}html[lang=si] .score-row small{line-height:1.7}
@media(max-width:760px){header{gap:9px;flex-wrap:wrap;height:auto;min-height:67px;padding-top:12px;padding-bottom:12px}.language-switch{margin-left:auto}.language-switch button{padding:6px;font-size:10px}.icon{margin-left:0}.quiet{padding:0;font-size:9px}html[lang=si] h1{font-size:22px}html[lang=si] .mode{max-width:140px;font-size:8px;padding:9px}html[lang=si] .mode small{font-size:8px}html[lang=si] .action-panel h2{font-size:17px}html[lang=si] .score-row strong{font-size:10px}html[lang=si] .hand-label>span:last-child{max-width:58%;text-align:right}html[lang=si] .goal{flex-wrap:wrap}html[lang=si] .your-turn{font-size:8px}html[lang=si] .seat small{font-size:7px}.trick-score div>span span{font-size:8px}html[lang=si] footer{line-height:1.8}}
@media(max-width:400px){header .quiet{width:100%;text-align:right}html[lang=si] .mode{max-width:118px}}
