/* Generated by node sg/build-assets.cjs; edit the source stylesheets. */
/* style.css */
:root {
    font-family: Inter, "Microsoft YaHei", system-ui, sans-serif;
    color: #24342f;
    background: #f6f7f2;
    font-synthesis: none
}


* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: radial-gradient(ellipse at 5% 30%, #e4eddf 0, transparent 45%), radial-gradient(ellipse at 90% 90%, #e9ede0 0, transparent 45%);
    min-height: 100vh
}

.shell {
    max-width: 1160px;
    margin: auto;
    padding: 32px 40px
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.brand {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 21px;
    font-weight: 750
}

.logo {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: #295b46;
    color: white;
    border-radius: 14px;
    font-size: 24px
}

.brand-sub {
    display: block;
    font-size: 10px;
    letter-spacing: 3px;
    font-weight: 400;
    color: #63756a;
    margin-top: 3px
}

.chip {
    font-size: 11px;
    letter-spacing: 1.5px;
    border: 1px solid #d9e2d7;
    border-radius: 20px;
    padding: 8px 12px;
    color: #607165
}

main {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 70px;
    align-items: start;
    padding: 64px 0 40px
}

.intro {
    padding-top: 54px;
    position: sticky;
    top: 40px
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 2.5px;
    font-weight: 650;
    color: #698273
}

h1 {
    font-size: clamp(32px, 4vw, 49px);
    line-height: 1.45;
    letter-spacing: -2px;
    font-weight: 650;
    margin: 24px 0
}

h1 span {
    color: #4e7b5f
}

.intro p {
    font-size: 15px;
    line-height: 1.9;
    color: #708075
}

.workspace {
    background: #fff;
    border: 1px solid #e2e8dc;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 16px 50px #31473608
}

.account {
    display: flex;
    align-items: center;
    gap: 12px
}

.avatar {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #edf2e7;
    color: #59744e
}

.account strong {
    font-size: 16px;
    overflow-wrap: anywhere
}

.muted {
    color: #829085;
    font-size: 11px;
    margin-top: 5px
}

.quiet {
    margin-left: auto;
    background: transparent;
    border: 0;
    color: #678072;
    cursor: pointer;
    padding: 8px
}

.stats {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    background: #f6f8f2;
    border-radius: 14px;
    padding: 18px 20px;
    margin: 23px 0
}

.stats div+div {
    border-left: 1px solid #e1e7dc;
    padding-left: 20px
}

.stats span {
    display: block;
    font-size: 11px;
    color: #7d8d7c
}

.stats strong {
    display: block;
    font-size: 24px;
    font-weight: 550;
    margin-top: 5px
}

label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 650;
    margin: 21px 0 10px
}

.step {
    color: #809578;
    font-size: 10px;
    letter-spacing: 1px
}

.optional {
    margin-left: auto;
    color: #95a08e;
    font-size: 11px;
    font-weight: 400
}

select,
textarea {
    width: 100%;
    font: inherit;
    font-size: 14px;
    color: #354b3a;
    border: 1px solid #dce4d7;
    border-radius: 10px;
    background: #fff;
    padding: 12px 14px
}

textarea {
    resize: vertical;
    min-height: 70px;
    line-height: 1.6
}

textarea:disabled {
    background: #f8f9f5;
    color: #7c8979
}

select:focus-visible,
textarea:focus-visible,
button:focus-visible {
    outline: 3px solid #aeca9b;
    outline-offset: 3px
}

.field-note {
    font-size: 12px;
    line-height: 1.7;
    color: #7a8b74;
    min-height: 20px;
    margin: 8px 0 0
}

.primary {
    width: 100%;
    display: flex;
    justify-content: space-between;
    border: 0;
    border-radius: 10px;
    background: #315f46;
    color: white;
    padding: 14px 18px;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    margin: 18px 0 24px;
    transition: background .2s
}

.primary:hover {
    background: #244d37
}

.primary:disabled {
    opacity: .55;
    cursor: wait
}

.result-panel {
    border-top: 1px solid #e9ede3;
    padding-top: 18px
}

.result-heading {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    letter-spacing: 1px;
    color: #91a087
}

.dot {
    height: 6px;
    width: 6px;
    border-radius: 50%;
    background: #9db58c
}

#result {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.85;
    font-size: 13px;
    color: #526749;
    margin: 12px 0 0
}

#result.error {
    color: #a45138
}

.binding-note {
    padding: 12px;
    background: #fff7df;
    border-radius: 8px;
    font-size: 12px;
    color: #846c30;
    line-height: 1.7;
    margin-bottom: 18px
}

.table-wrap {
    overflow: auto;
    max-height: 470px;
    margin-top: 14px
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: 12px;
    text-align: left
}

td,
th {
    padding: 10px 8px;
    border-bottom: 1px solid #e8eddf;
    overflow-wrap: anywhere
}

th {
    background: #f5f7ef;
    position: sticky;
    top: 0;
    color: #728269
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    font-size: 10px;
    color: #8b9984;
    line-height: 1.8;
    border-top: 1px solid #dfe5d6;
    padding-top: 20px
}

@media(max-width:760px) {
    .shell {
        padding: 22px 18px
    }

    main {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 26px 0
    }

    .intro {
        padding: 0;
        position: static
    }

    .intro h1 {
        font-size: 30px;
        margin: 12px 0
    }

    .intro h1 br {
        display: none
    }

    .intro p {
        font-size: 13px;
        margin: 0
    }

    .eyebrow {
        font-size: 9px
    }

    .workspace {
        padding: 22px;
        border-radius: 18px
    }

    footer {
        flex-direction: column;
        gap: 3px
    }

    .stats strong {
        font-size: 21px
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        transition: none !important
    }
}

/* Simplified single-column layout, including narrow phone screens. */
.shell {
    max-width: 640px;
    padding: 20px 16px
}

main {
    display: block;
    padding: 0
}

.workspace {
    min-width: 0;
    padding: 24px
}

.account>div {
    min-width: 0
}

.stats>div {
    min-width: 0
}

.stats strong {
    overflow-wrap: anywhere
}

select,
textarea {
    font-size: 16px
}

.primary,
.quiet {
    min-height: 44px
}

.table-wrap {
    max-width: 100%;
    overscroll-behavior: contain
}

@media(max-width:480px) {
    .shell {
        padding: 12px 10px
    }

    .workspace {
        padding: 18px 14px;
        border-radius: 16px
    }

    .stats {
        padding: 14px 12px;
        gap: 8px
    }

    .stats div+div {
        padding-left: 10px
    }

    .stats strong {
        font-size: 20px
    }

    .muted {
        line-height: 1.6
    }
}
/* Shared circular club mark on every page. */
.brand-logo {
    display: block;
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    background: #e2edf6;
}
@media (max-width: 600px) {
    .brand { gap: 8px; }
    .brand-logo { width: 44px; height: 44px; flex-basis: 44px; }
}

/* club.css */
header{gap:16px;flex-wrap:wrap;margin-bottom:24px}header a{color:#295b46}h1{font-size:clamp(25px,4vw,36px);margin:0 0 14px}.portals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:28px}.portal{padding:28px 22px;background:#e5eee3;border:1px solid #d6e1d2;border-radius:16px;text-decoration:none;color:inherit;display:grid;gap:14px}.portal strong{font-size:22px}.portal span{line-height:1.7;color:#52645a}.lilac{background:#eee9f5;border-color:#dfd5eb}input{width:100%;padding:14px;border:1px solid #cbd7cb;border-radius:10px;font:inherit;background:#fff;color:inherit}#message{white-space:pre-wrap;line-height:1.7}#pictures{display:grid;gap:20px;margin-top:20px}.picture{margin:0;padding:14px;background:#fff;border:1px solid #ddd;border-radius:12px;overflow:hidden}.picture img,.picture video{display:block;width:100%;height:auto;max-width:580px;margin:auto}.picture figcaption{padding:12px 0;overflow-wrap:anywhere}.review-actions{display:flex;gap:8px;flex-wrap:wrap}.review-actions button{padding:12px;border:1px solid #cbc3d8;border-radius:8px;cursor:pointer}.review-actions input{flex-basis:100%}body[data-page=quotes]{background:radial-gradient(ellipse at top left,#eee6f5,transparent),#f8f6fa}body[data-page=quotes] .primary{background:#705084}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #a579cd;outline-offset:3px}@media(max-width:600px){.portals{grid-template-columns:1fr}.shell{padding:20px 14px}.workspace{padding:22px 16px}header .brand{font-size:18px}}
/* Shared account row: the action stays on one line on narrow phones. */
[hidden]{display:none!important}
.account{gap:16px}
#identity{min-width:0;overflow-wrap:anywhere}
.account-button{flex:0 0 auto;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;padding:10px 16px;font:inherit;line-height:1.4;cursor:pointer}
#loginEntry{background:#295b46;color:#fff;border-color:#295b46}
#accountHint:empty,#message:empty{display:none}
#authorizationCode{display:block;max-width:100%;margin:10px 0;font-size:clamp(40px,11vw,64px);font-weight:750;line-height:1.2;letter-spacing:.12em;font-variant-numeric:tabular-nums;color:#295b46;user-select:all;overflow-wrap:anywhere}
#authorizationCopyHint:empty{display:none}
#authorizationCommand{overflow-wrap:anywhere}
.picture figcaption{padding:0 0 12px;font-weight:600}

/* All feature pages share the exact same header and content boundaries. */
.shell{width:100%;max-width:640px;margin-inline:auto;padding:20px 16px}
.shell>header,.shell>main,.workspace{width:100%;min-width:0}
.shell>header{margin:0 0 24px}
.workspace{padding:24px}
.account{flex-wrap:nowrap;justify-content:space-between}
body[data-page=home] .account,body[data-page=game] .account{flex-wrap:wrap}
.account-button{border-radius:10px;min-height:44px;min-width:max-content}
#name{overflow-wrap:anywhere}
@media(max-width:600px){.shell{padding:20px 14px}.workspace{padding:22px 16px}}

.home-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 14px;border:1px solid #d5dfd3;border-radius:10px;background:#fff;text-decoration:none;white-space:nowrap;flex-shrink:0;font-size:14px}
#connectionStatus{color:#829085;font-size:13px;line-height:1.6}
.quota-footer{margin:18px 0 4px;color:#738077;font-size:12px;line-height:1.6}.quota-footer small{font-size:inherit}

body[data-page=game] #loginEntry{order:2}
.members-portal{background:#e4eef8;border-color:#d2e0ee;grid-column:1/-1}

@media (min-width: 900px) {
    .shell { max-width: 1160px; padding: 36px 40px 64px; }
    .shell>header { margin-bottom: 32px; }
    .workspace { padding: 36px 40px; }
    body[data-page="home"] .portals { gap: 20px; }
    body[data-page="home"] .portal { min-height: 165px; padding: 30px; }
    body[data-page="login"] .shell { max-width: 820px; }
    body[data-page="game"] .workspace { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; align-items: start; }
    body[data-page="game"] .workspace > h1, body[data-page="game"] .workspace > .muted, body[data-page="game"] .account, body[data-page="game"] .stats, body[data-page="game"] .binding-note { grid-column: 1 / -1; }
    body[data-page="game"] #form { grid-column: 1; }
    body[data-page="game"] .result-panel { grid-column: 2; min-width: 0; min-height: 320px; padding: 20px 24px; border: 1px solid #e9ede3; border-radius: 16px; background: #fbfcf9; }
    body[data-page="quotes"] #search { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr) auto; align-items: end; gap: 10px 16px; margin-top: 22px; }
    body[data-page="quotes"] #search > label { margin: 0; }
    body[data-page="quotes"] #search > label:first-child { grid-column: 1; grid-row: 1; }
    body[data-page="quotes"] #mode { grid-column: 1; grid-row: 2; }
    body[data-page="quotes"] #paramLabel { grid-column: 2; grid-row: 1; }
    body[data-page="quotes"] #query, body[data-page="quotes"] #uploadFile { grid-column: 2; grid-row: 2; min-width: 0; }
    body[data-page="quotes"] #search > .primary { grid-column: 3; grid-row: 2; width: auto; min-width: 136px; margin: 0; justify-content: center; white-space: nowrap; }
    body[data-page="quotes"] #uploadHint { grid-column: 1 / -1; margin: 0; }
    body[data-page="quotes"] #pictures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body[data-page="quotes"] .picture { min-width: 0; }
}
.exhibition-portal{background:#f6eadc;border-color:#e7d7c2}
.merge-portal{background:#fff3bc;border-color:#ead36e}.merge-portal strong{color:#79570d}.merge-portal span{color:#75602b}
.sheep-portal{background:#ffe9d5;border-color:#eac6a7}.sheep-portal strong{color:#854c39}.sheep-portal span{color:#8c6a58}
.beasts-portal{background:#e7f0f5;border-color:#cbdde8}.beasts-portal strong{color:#244a64}.beasts-portal span{color:#547184}
.fortune-portal{background:#f4e8e2;border-color:#e7d1c6}.fortune-portal strong{color:#784c3e}.fortune-portal span{color:#80685e}
@media(min-width:601px){.members-portal{grid-column:auto}}
#ranking{margin-top:20px;overflow-x:auto}#ranking[hidden]{display:none}#ranking table{width:100%;border-collapse:collapse;background:#fff;border-radius:12px;overflow:hidden}#ranking th,#ranking td{padding:12px 14px;border-bottom:1px solid #e6e0ed;text-align:left}#ranking th{background:#eee9f5}
#quoteEditor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:20px;padding:18px;border:1px solid #dfd5eb;border-radius:12px;background:#f7f3fb}#quoteEditor[hidden]{display:none}#quoteEditor label{display:grid;gap:6px}#quoteEditor input{min-width:0}#quoteEditor button,#quoteEditor p{grid-column:1/-1}#quoteEditor p{margin:0}
@media(max-width:600px){#quoteEditor{grid-template-columns:1fr}}

/* tjfursg.css */
/* Page boundaries follow the shared club layout in every room state. */
html:has(body[data-page=tjfursg]){scrollbar-gutter:stable}
body[data-page=tjfursg]{background:radial-gradient(ellipse at top left,#dfeaf2,transparent),#f5f8fa;color:#233744}
body[data-page=tjfursg] header .home-button{margin-left:auto}
body[data-page=tjfursg] .shell{max-width:1320px}
body[data-page=tjfursg] .sg-workspace{position:relative;min-height:calc(100svh - 172px);background:#fff;border:1px solid #dbe5ed;border-radius:20px;box-shadow:0 8px 30px #244a6408}
.sg-workspace h2{font-size:22px;margin:0}.sg-workspace h3{font-size:20px;margin:0}.sg-workspace p{line-height:1.6}.sg-workspace .muted{color:#657784}
.sg-title,.sg-section-title{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0}
.sg-title>div{width:100%;min-width:0}.sg-title h1{font-size:30px;margin:0 0 7px}
.sg-title .muted{font-size:14px;margin:0}.sg-title .account{display:flex;align-items:center;font-size:14px;gap:12px;min-width:0;min-height:44px;margin-top:10px}.sg-title #identity{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sg-title #identity.sg-identity-notice{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}.sg-title .account-button{padding:8px 14px;font-size:14px}.sg-title #loginEntry[hidden]{display:inline-flex!important;visibility:hidden;pointer-events:none}
.sg-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0 0;padding:14px 16px;background:#f0f5f9;border:1px solid #dce7ef;border-radius:12px}
.sg-summary>div:not(.sr-only){display:flex;align-items:baseline;gap:10px;min-width:0}.sg-summary span{font-size:14px;color:#657784}.sg-summary strong{font-size:23px;line-height:1.3;font-variant-numeric:tabular-nums}
/* Empty lobby status has no footprint; room errors float above the stable table. */
.sg-lobby-status{min-width:0}.sg-lobby-status>p{margin:10px 0;font-size:13px;line-height:20px!important;overflow-wrap:anywhere}.sg-message.error{color:#9d3c3c}.sg-status-login{margin-left:8px;white-space:nowrap}
body[data-page=tjfursg]:has(#room:not([hidden])) .sg-lobby-status{height:0;margin:0}
body[data-page=tjfursg]:has(#room:not([hidden])) .sg-lobby-status>p{position:fixed;inset:auto 16px 16px;z-index:20;max-width:680px;max-height:80px;margin-inline:auto;padding:10px 13px;background:#fff8e8;border:1px solid #e8d1a1;border-radius:10px;box-shadow:0 4px 24px #244a6426;font-size:13px;line-height:20px!important}
.sg-button{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:42px;border:1px solid #244a64;border-radius:9px;background:#244a64;color:#fff;padding:10px 14px;font:inherit;font-size:14px;line-height:1.35;cursor:pointer;white-space:nowrap;text-decoration:none;touch-action:manipulation}.sg-button.secondary{background:#f7fafc;color:#244a64;border-color:#cddce6}.sg-button:disabled{opacity:.5;cursor:default}.sg-button:not(:disabled):hover{filter:brightness(.95)}.sg-button.resume{width:100%;margin:12px 0 0}
.sg-section-title{margin:10px 0 16px}.sg-section-title .sg-button{min-height:38px;padding:8px 12px;font-size:13px}
.sg-room-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}.sg-create-actions,.sg-room-actions form{display:flex;align-items:center;gap:9px;min-width:0;margin:0}.sg-create-actions label{font-size:13px;color:#657784;white-space:nowrap}.sg-create-actions .sg-button{flex:0 0 auto}.sg-room-actions input{min-width:0;flex:1;width:auto;padding:10px 12px;min-height:42px;font-size:15px;letter-spacing:1px}
.sg-create-actions label,#roomTierControl{margin:0}.sg-create-actions select,#roomTier{font:inherit;font-size:14px;min-height:40px;border:1px solid #cddce6;border-radius:9px;background:#f7fafc;color:#244a64;padding:8px;min-width:0}.sg-create-actions select{flex:1}
.sg-rooms{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;margin:20px 0 0;max-height:340px;overflow:auto;overscroll-behavior:contain}.sg-rooms>p{font-size:14px;margin:8px 0}
.sg-room-entry{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:10px;row-gap:7px;border:1px solid #dce7ef;background:#f7fafc;padding:13px 14px;border-radius:12px}.sg-room-entry-heading{display:flex;align-items:baseline;gap:7px;min-width:0;grid-column:1;grid-row:1}.sg-room-entry-heading>*{white-space:nowrap}.sg-room-code{font-size:18px;font-weight:750;letter-spacing:.3px;font-variant-numeric:tabular-nums;color:#244a64}.sg-room-tier{font-size:16px;font-weight:700;color:#244a64}.sg-room-status{font-size:13px;font-weight:650;color:#547184}.sg-room-entry button{grid-column:2;grid-row:1;min-height:34px;font-size:13px;padding:6px 9px}.sg-room-tier-note{display:flex;flex-wrap:wrap;gap:4px 6px;grid-column:1/-1;grid-row:2;color:#657784;font-size:12px;line-height:1.5}.sg-room-tier-note>span{white-space:nowrap}.sg-room-tier-note>span+span:before{content:'·';margin-right:6px}
/* Room number, tier and round remain on the same heading line. */
.sg-room-bar{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;min-height:48px;font-size:14px}.sg-room-information{display:flex;flex-direction:column;gap:2px;min-width:0;grid-column:1}.sg-room-heading{display:flex;align-items:center;gap:8px;min-width:0;white-space:nowrap;color:#244a64;font-size:16px}#phase{font-size:14px;color:#244a64;font-weight:750;white-space:nowrap;min-width:86px;font-variant-numeric:tabular-nums}#roomTierDetails{color:#657784;font-size:13px;line-height:1.5}.sg-inline-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;grid-column:1}.sg-inline-actions .sg-button{min-height:38px;padding:8px 11px;font-size:13px}.sg-room-settings{display:flex;align-items:center;flex-wrap:wrap;gap:10px 20px;min-width:0;grid-column:1}#roomTierControl{display:flex;align-items:center;gap:8px;color:#657784;font-size:13px;white-space:nowrap}#roomTier{font:inherit;font-size:13px;min-height:38px;padding:6px 8px;min-width:0;border:1px solid #cddce6;border-radius:9px;background:#f7fafc;color:#244a64}
/* The in-game trustee button sits beside both metadata lines. */
.sg-room-bar:has(#autoPlay:not([hidden])){grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:10px;row-gap:0}
.sg-room-bar:has(#autoPlay:not([hidden])) .sg-inline-actions{grid-column:2;grid-row:1;flex-wrap:nowrap;justify-content:flex-end;align-self:center}
.sg-room-bar:has(#autoPlay:not([hidden])) #phase{min-width:0}
.sg-room-bar:has(#autoPlay:not([hidden])) #roomTierDetails{word-break:keep-all}
.sg-table-stage{position:relative;min-width:0;margin:16px 0;overflow-anchor:none}.sg-table-stage.waiting{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.sg-table-stage.waiting .sg-players,.sg-table-stage.active .sg-players{display:contents}
.sg-player{position:relative;border:1px solid #dce7ef;border-radius:12px;background:#f7fafc;min-width:0}.sg-table-stage.waiting .sg-player{height:126px;padding:9px;display:flex;flex-direction:column;gap:3px;justify-content:flex-start;overflow:hidden}.sg-player.self{border-color:#608cab;background:#edf5fa}.sg-player.empty{color:#82929e;justify-content:center!important;align-items:center;text-align:center}.sg-player.empty strong{font-size:14px}.sg-player.empty .sg-button{font-size:13px;min-height:38px;padding:8px 10px}
.sg-player-heading{display:flex;align-items:center;gap:7px;min-width:0;min-height:30px}.sg-player-heading strong:not(.sg-player-balance-value){font-size:14px;line-height:1.35;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sg-avatar{position:relative;overflow:hidden;display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border:1px solid #c1d6e2;border-radius:50%;background:#e4eff6;font-size:15px;color:#416982}.sg-player-avatar-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.sg-player .sg-seat-balance{display:flex;align-items:center;gap:4px;font-size:12px;color:#5a7180;line-height:1;white-space:nowrap;flex:0 0 auto}.sg-player-heading>.sg-seat-balance{margin-left:auto}.sg-player .sg-player-balance-value{font-size:16px;line-height:1;font-variant-numeric:tabular-nums;color:#233f53;font-weight:750}.sg-player-status{font-size:13px;color:#657784;line-height:1.4}.sg-player-error{color:#a3473d;font-size:12px;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sg-table-stage.waiting .sg-player-error{white-space:normal;overflow-wrap:anywhere;overflow:visible;text-overflow:clip}.sg-table-stage.waiting .sg-player:has(.sg-player-error){height:auto;min-height:126px}.sg-table-stage.waiting #selfSeat:has(.sg-player-error){height:auto;min-height:126px}
.sg-player-heading .sg-auto-status,.sg-player-heading .sg-eliminated-status,.sg-player-heading .sg-host-status,.sg-player-heading .sg-self-status,.sg-player-heading .sg-bot-status{flex:0 0 auto;font-size:11px;padding:2px 4px;border-radius:4px;line-height:1.3;background:#e7eff5;color:#4e6e86;white-space:nowrap}.sg-player-heading .sg-eliminated-status{background:#ece5e1;color:#7b655c}.sg-bot-controls{display:flex;align-items:stretch;flex-wrap:nowrap;gap:4px;min-width:0;width:100%;margin-top:auto}.sg-bot-mode{flex:1;min-width:0;width:0;max-width:100%;font:inherit;font-size:12px;height:32px;min-height:32px;padding:5px 6px;border:1px solid #cddce6;border-radius:7px;background:#fff;color:#244a64}.sg-bot-mode:disabled{opacity:.55}.sg-remove-bot{flex:0 0 auto;font-size:11px!important;padding:5px 7px!important;height:32px;min-height:32px!important}.sg-bot-strategy{font-size:12px;color:#657784}.sg-table-stage.waiting #selfInfo{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0}.sg-table-stage.waiting .sg-player-heading{width:100%}.sg-table-stage.waiting .sg-player-heading strong:not(.sg-player-balance-value){flex:1 1 0;max-width:none}.sg-kick-player{align-self:flex-end;margin-top:auto;min-height:32px;font-size:12px;padding:5px 8px}.sg-table-stage.waiting .sg-seat-cards:empty{display:none}

/* Phase changes reuse fixed animation targets and reserved status areas. */
.sg-table-stage.active{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) minmax(0,1fr);grid-template-rows:160px 160px 220px;gap:16px;padding:16px;background:radial-gradient(ellipse at center,#e6f1f5,#eff5f8);border:1px solid #ccdde6;border-radius:18px}.sg-table-stage.active .sg-player{height:160px;padding:10px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:30px 28px 44px minmax(0,1fr);gap:6px;align-content:start;overflow:visible}
.sg-table-stage.active .seat-top-left{grid-column:1;grid-row:1}.sg-table-stage.active .seat-bottom-left{grid-column:1;grid-row:2}.sg-table-stage.active .seat-top-right{grid-column:3;grid-row:1}.sg-table-stage.active .seat-bottom-right{grid-column:3;grid-row:2}.sg-table-stage.active .sg-player:not(#selfSeat) .sg-player-heading{grid-column:1/-1;grid-row:1}.sg-table-stage.active .sg-player:not(#selfSeat) .sg-player-status,.sg-table-stage.active .sg-player:not(#selfSeat) .sg-player-error{grid-column:1;grid-row:2;align-self:center}.sg-table-stage.active .sg-player:not(#selfSeat) .sg-live-rank{position:static;grid-column:2;grid-row:2;justify-self:end;align-self:center}.sg-table-stage.active .sg-player:not(#selfSeat) .sg-seat-cards{grid-column:1/-1;grid-row:3;align-self:center}
.sg-player .sg-hand-type{color:#254f70;font-size:15px;font-weight:750;line-height:23px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sg-seat-cards{display:flex;gap:4px;align-items:center;min-height:42px;transform-origin:left center}.sg-mini-card{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;flex:0 0 auto;border:1px solid #c8d6df;border-radius:5px;background:#fff;width:29px;height:44px;font-size:15px;line-height:1.25;font-weight:650;color:#233744}.sg-mini-card.red,.sg-card.red{color:#b3434b}.sg-card-suit{font-size:17px}.sg-seat-cards .sg-mini-card{width:29px;height:43px;font-size:14px}.sg-card-back{background:repeating-linear-gradient(45deg,#60849d,#60849d 4px,#6b91ab 4px,#6b91ab 8px);color:#e5f0f6;border:2px solid #fff;box-shadow:0 0 0 1px #bacddb}
.sg-opponent-hand{display:flex;align-items:center;grid-column:1/-1;grid-row:2;align-self:center;width:max-content;height:26px;pointer-events:none}.sg-opponent-hand .sg-mini-card{position:relative;width:19px;height:26px;font-size:10px;border-radius:3px}.sg-opponent-hand .sg-mini-card+.sg-mini-card{margin-left:-10px}
.sg-player .sg-live-rank{font-size:20px;line-height:1.1;font-weight:800;color:#3c6079;background:#e6eff5;padding:4px 6px;border-radius:6px;white-space:nowrap;z-index:1}.sg-player .sg-live-rank.first{color:#96611a;background:#fff0c9;box-shadow:0 0 0 1px #dfbd71}.sg-player.sg-is-leading{border-color:#d4ad57;background:#fffbef}.sg-player.eliminated{background:#f1f3f5;border-color:#d2d8dd}.sg-player.eliminated .sg-player-status{color:#7c6660;font-weight:650}
.sg-table-stage.active .sg-player:not(#selfSeat)>.sg-seat-delta{grid-column:1/-1;grid-row:4;position:static;justify-self:end;align-self:center}.sg-seat-delta{position:static;display:flex;align-items:center;justify-content:center;min-height:0;height:100%;font-size:18px!important;line-height:20px;font-weight:800;pointer-events:none;white-space:nowrap;will-change:opacity;background:transparent;padding:0}
/* The complete effect line is reserved, including ultimate effects. */
.sg-public-area{position:relative;grid-column:2;grid-row:1/3;align-self:center;text-align:center;min-width:0;height:202px}.sg-public-area h3{height:60px;display:flex;align-items:center;justify-content:center;font-size:21px;line-height:1.3;margin:0 0 8px;padding:0 26px 20px;white-space:nowrap}.sg-public-area #stageHint{position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip:rect(0,0,0,0)}.sg-selection-timer{position:absolute;inset:38px 0 auto;height:22px;display:flex;align-items:center;justify-content:center;margin:0;font-size:13px!important;line-height:22px!important;font-weight:700;font-variant-numeric:tabular-nums;color:#244a64;white-space:nowrap}.sg-selection-timer.urgent{color:#b3434b}.sg-selection-timer[hidden]{display:flex!important;visibility:hidden}.sg-camps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.sg-camp{appearance:none;background:#f7fafc;color:#233744;border:2px solid #dde7ef;border-radius:10px;padding:12px 8px;font:inherit;cursor:pointer;min-width:0;height:126px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;touch-action:manipulation}.sg-camp[aria-pressed=true]{border-color:#426f8e;background:#eaf3fa}.sg-camp:disabled{cursor:default}.sg-camp>strong{font-size:22px;line-height:1.15}.sg-public-cards{display:flex;justify-content:center;gap:3px;height:46px;min-height:46px;align-items:center}.sg-no-public{height:46px;display:flex;align-items:center;color:#82929e;font-size:12px}.sg-public-cards .sg-mini-card{width:27px;height:44px}
.sg-deck{position:absolute;right:0;top:13px;width:23px;height:34px;pointer-events:none;opacity:0;transition:opacity .15s ease}.sg-deck .sg-mini-card{position:absolute;inset:0;width:23px;height:34px;box-shadow:2px 2px 0 #dae5ec,4px 4px 0 #b8ccd9}.stage-round .sg-deck,.stage-deal .sg-deck,.stage-sort .sg-deck,.stage-public .sg-deck,.stage-collect .sg-deck,.stage-wait .sg-deck{opacity:1}
.sg-center-effects{position:absolute;z-index:4;top:0;left:50%;transform:translateX(-50%);width:100%;height:60px;display:grid;place-items:center;pointer-events:none}.sg-public-area.showing-effect #stageTitle{visibility:hidden}.sg-effect-announcement{display:block;white-space:nowrap;line-height:1.15;font-weight:800;letter-spacing:1px;text-shadow:0 2px 0 #fff8,0 4px 12px #244a6420}.sg-effect-announcement.effect-critical{color:#b76615}.sg-effect-announcement.effect-kill{color:#8452a7}.sg-effect-announcement[data-count="2"]{font-size:28px}.sg-effect-announcement[data-count="3"]{font-size:33px}.sg-effect-announcement[data-count="4"]{font-size:38px}.sg-effect-announcement[data-count="5"]{font-size:42px}.sg-effect-announcement.sg-multiplier-announcement{letter-spacing:.5px}.sg-effect-announcement.animate-announcement{animation:sg-announcement-pop 1.2s ease-out both}
.sg-table-stage.active #selfSeat{display:block;grid-column:1/-1;grid-row:3;justify-self:center;width:min(700px,100%);height:220px;padding:12px 16px;background:#fff;border-color:#6995ae}.sg-table-stage.active #selfInfo{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:30px;height:52px;min-height:52px;gap:6px;align-items:start;position:relative}.sg-table-stage.active #selfInfo .sg-player-heading{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;column-gap:14px;grid-column:1/-1;grid-row:1}.sg-table-stage.active #selfInfo .sg-player-heading>.sg-auto-status{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.sg-table-stage.active #selfInfo .sg-player-heading>.sg-seat-balance,.sg-table-stage.active #selfInfo .sg-player-heading>.sg-eliminated-status{grid-column:4;margin-left:0}.sg-table-stage.active #selfInfo .sg-player-heading>.sg-live-rank{grid-column:3;margin-left:8px}.sg-table-stage.active #selfInfo .sg-live-rank{flex:0 0 auto;font-size:19px}.sg-table-stage.active #selfInfo .sg-seat-cards:empty{display:none}.sg-table-stage.active #selfInfo .sg-player-error{position:absolute;left:0;right:0;top:32px;height:20px;line-height:20px;text-align:center;z-index:2}.sg-table-stage.active #selfInfo .sg-seat-login{position:absolute;right:0;top:31px;z-index:3;min-height:22px;padding:1px 6px;font-size:12px;background:#fff}.sg-table-stage.active #selfInfo:has(.sg-seat-login) .sg-player-error{padding-right:80px}
#playArea{max-width:none;margin:0;padding:0;background:transparent;border:0;border-radius:0}.sg-submit-row{--sg-preview-width:181px;display:grid;grid-template-columns:minmax(78px,1fr) var(--sg-preview-width) minmax(88px,1fr);align-items:center;gap:10px;height:58px;margin:0}.sg-selection-meta{min-width:0}.sg-submit-row #preview{font-size:14px;font-weight:750;color:#254f70;line-height:1.5;margin:0;max-height:42px;overflow:hidden}.sg-selection-preview{display:flex;justify-content:center;align-items:center;gap:4px;min-width:0;width:100%;height:56px;min-height:56px}.sg-selection-preview .sg-mini-card{width:33px;height:50px;font-size:16px;box-shadow:0 2px 5px #244a6410}.sg-submit-actions{justify-self:end}.sg-submit-actions .sg-button{min-height:40px;font-size:13px;padding:8px 10px}
.sg-hand-message{display:grid;place-items:center;width:100%;height:100%;margin:0;color:#244a64;font-size:16px;font-weight:750;text-align:center}
.sg-hand{touch-action:none;user-select:none;-webkit-user-select:none}
#playArea.surrendered{display:grid}#playArea.surrendered .sg-submit-row,#playArea.surrendered .sg-hand{grid-area:1/1}#playArea.surrendered .sg-submit-row{visibility:hidden;pointer-events:none}#playArea.surrendered .sg-hand{height:140px;min-height:140px;padding:0}
.sg-rules .sg-rule-label{display:block;margin-bottom:4px;color:#244a64;font-size:14px;font-weight:750}
/* With no complete selection, the prompt occupies the full preview row. */
.sg-submit-row.has-selection-hint{position:relative}.sg-submit-row.has-selection-hint .sg-selection-meta{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;z-index:1;padding:0 8px}.sg-submit-row.has-selection-hint #preview{max-width:100%}.sg-submit-row.has-selection-hint .sg-selection-preview,.sg-submit-row.has-selection-hint .sg-submit-actions{visibility:hidden;pointer-events:none}
/* Invisible controls retain the same selection and reveal slots. */
.sg-table-stage.active #submitCards[hidden]{display:inline-flex!important;visibility:hidden;pointer-events:none}.sg-table-stage.active #preview[hidden]{display:block!important;visibility:hidden}.sg-table-stage.active #selectionPreview[hidden]{display:flex!important;visibility:hidden}
.sg-hand{height:82px;min-height:82px;display:flex;justify-content:center;align-items:flex-start;gap:8px;padding:10px 0 0;box-sizing:border-box;overflow:visible}.sg-hand .sg-card{flex:0 0 48px;width:48px;height:72px}.sg-card{appearance:none;border:1px solid #bdceda;background:#fff;border-radius:7px;color:#233744;min-width:0;min-height:0;font:inherit;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:5px 2px;cursor:pointer;box-shadow:0 2px 4px #244a6410;transition:transform .16s ease,border-color .16s ease,background .16s ease;touch-action:manipulation}.sg-card>strong{font-size:22px;font-weight:650}.sg-card.selected{transform:translateY(-9px);background:#e8f3fb;border-color:#2c6b96;box-shadow:0 0 0 1px #2c6b96}.sg-card:disabled{cursor:default}#selfInfo>.sg-seat-delta{position:absolute;right:0;top:31px;height:21px;font-size:17px!important;line-height:21px}#selfInfo:has(.sg-player-error)>.sg-seat-delta{visibility:hidden}#autoPlay[aria-pressed=true]{background:#e5eff7;border-color:#668fae;color:#244a64}
.sg-notice{position:absolute;left:20px;right:20px;top:62px;z-index:8;background:#fff4df;color:#8b6530;padding:8px 11px;border:1px solid #e9d5aa;border-radius:8px;font-size:13px;margin:0;box-shadow:0 3px 12px #244a6410}
.positive{color:#2a7b54}.negative{color:#b3434b}.sg-small-note{font-size:13px;color:#657784}.sg-workspace details{margin-top:14px;border-top:1px solid #dce7ef;padding-top:10px}.sg-workspace summary{cursor:pointer;color:#244a64;font-weight:600;line-height:1.7;font-size:14px}.sg-rules p{font-size:13px;color:#657784}.sg-rules p.sg-rules-tip{color:#244a64;font-size:15px;font-weight:750;line-height:1.65}.sg-history-title{margin-top:18px;font-size:15px}.sg-table-wrap{overflow-x:auto;border:1px solid #dce7ef;border-radius:10px;margin:10px 0}.sg-result-table{border-collapse:collapse;width:100%;min-width:640px;font-size:14px}.sg-result-table th,.sg-result-table td{padding:12px 10px;text-align:left;border-bottom:1px solid #e2eaf0;vertical-align:middle}.sg-result-table th{background:#edf4f9;white-space:nowrap}.sg-result-table tbody tr:last-child td{border-bottom:0}.sg-result-table .self td{background:#f1f7fb}.sg-result-cards{display:flex;gap:4px;min-width:155px}.sg-factors{font-size:13px;line-height:1.6;color:#657784}.sg-factors strong{color:#233744}
.sg-result-hand-type{display:inline-flex;align-items:baseline;gap:7px;white-space:nowrap;margin-bottom:4px}.sg-result-hand-multiplier{font-size:13px;color:#526e81}.sg-result-badges{display:inline-flex;align-items:center;flex-wrap:wrap;gap:4px;margin-left:7px;vertical-align:middle}.sg-result-badge{display:inline-block;border:1px solid #e3c79b;border-radius:5px;padding:2px 5px;background:#fff4dc;color:#8c611f;font-size:11px;font-weight:600;line-height:1.25;white-space:nowrap}.sg-result-badge.bankrupt{background:#f8e8e5;border-color:#dfb5ac;color:#a0493b}
.sg-delta-badges{flex-wrap:nowrap;gap:3px;margin-left:5px}.sg-delta-badges .sg-result-badge{padding:0 3px;font-size:10px;line-height:14px;vertical-align:middle}
/* Pending results retain only the inaccessible closed-history footprint. */
#room:has(.sg-table-stage.active:not([hidden])) #historyPanel[hidden]{display:block!important;visibility:hidden;pointer-events:none}
#historyPanel[hidden]>:not(summary){display:none!important}
/* One summary tree becomes player rows on phones and five columns on desktop. */

.sg-final-summary{margin:16px 0;padding:24px;border:1px solid #ccdde6;border-radius:16px;background:linear-gradient(135deg,#f0f6fa,#fffdf7)}.sg-final-summary h2{text-align:center;font-size:26px;margin:0}.sg-final-summary>.sg-small-note{text-align:center;margin:10px 0 22px}
.sg-summary-scroll{overflow-x:auto}.sg-summary-players{display:grid;grid-template-columns:70px repeat(5,minmax(0,1fr));gap:12px;align-items:stretch}.sg-summary-labels{display:flex;flex-direction:column;align-items:center;justify-content:flex-start}.sg-summary-profile-label{display:flex;height:145px;align-items:center;color:#617786;font-size:14px}.sg-summary-round-label{display:flex;height:49px;align-items:center;color:#617786;font-size:14px}
.sg-summary-player{min-width:0;border:1px solid #dbe5eb;border-radius:10px;background:#fff;overflow:hidden}.sg-summary-player.self{background:#e9f3fb;border-color:#89aac0}.sg-summary-player-profile{min-height:145px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;padding:14px 6px}.sg-summary-player-profile .sg-avatar{width:40px;height:40px;flex-basis:40px}.sg-summary-player-name{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;line-height:1.4}.sg-summary-total{font-size:21px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}.sg-summary-player-round{height:49px;display:flex;align-items:center;justify-content:center;border-top:1px solid #e3ebf1}.sg-summary-round-caption{display:none}.sg-summary-amount{font-size:18px;font-weight:700;font-variant-numeric:tabular-nums}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:851px) and (max-width:1099px){body[data-page=tjfursg] .sg-workspace{padding:24px}.sg-create-actions label{display:none}.sg-table-stage.active{gap:12px;padding:12px}.sg-public-cards{gap:2px}.sg-public-cards .sg-mini-card{width:23px;height:39px;font-size:14px}.sg-effect-announcement[data-count="5"]{font-size:35px}}
@media(max-width:850px){
 body[data-page=tjfursg] .sg-workspace{padding:18px 12px;border-radius:16px;min-height:calc(100svh - 112px)}
 .sg-title{gap:10px}.sg-title h1{font-size:28px}.sg-title .account{gap:8px;font-size:14px}.sg-title .account-button{padding:8px 12px;font-size:14px}.sg-title .muted{font-size:14px}.sg-summary{margin-top:16px;padding:13px 14px}.sg-summary strong{font-size:23px}.sg-lobby-status>p{font-size:14px}
 .sg-room-actions{grid-template-columns:1fr;gap:14px}.sg-create-actions label{display:none}.sg-room-actions .sg-button{min-height:44px;padding:10px 12px;font-size:15px}.sg-room-actions input,.sg-create-actions select,#roomTier{font-size:16px;min-height:44px}.sg-create-actions .sg-button{flex:0 0 auto}.sg-section-title{margin-bottom:16px}.sg-section-title .sg-button{font-size:14px;min-height:42px}.sg-workspace h2{font-size:21px}.sg-rooms{grid-template-columns:1fr;max-height:280px}.sg-rooms>p{font-size:14px}
 .sg-room-bar{gap:9px}.sg-room-information{gap:2px}.sg-room-heading{font-size:13px;gap:5px}.sg-room-heading strong{font-size:13px}#phase{font-size:12px;min-width:72px;line-height:20px}#roomTierDetails{font-size:12px;line-height:18px;white-space:normal}.sg-inline-actions{gap:7px;align-items:center}.sg-inline-actions .sg-button{min-height:38px;padding:7px 9px;font-size:12px}.sg-room-settings{flex-direction:column;align-items:stretch;gap:9px}#roomTierControl{font-size:12px;gap:7px}#roomTier{flex:1;font-size:12px;min-height:38px}


 /* Opponents form a compact, readable two-by-two grid. */
 .sg-table-stage{margin:12px 0}.sg-table-stage.active{grid-template-columns:minmax(0,1fr);grid-template-rows:260px 144px 180px;gap:9px;padding:8px;border-radius:14px}.sg-table-stage.active .sg-players{display:grid;grid-column:1;grid-row:1;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,126px);gap:8px;margin:0}.sg-table-stage.active .sg-player:not(#selfSeat){grid-column:auto;grid-row:auto;width:100%;height:126px;padding:6px;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:23px 25px 34px minmax(0,1fr);gap:4px;border-radius:10px}
 .sg-player-heading{gap:3px;min-height:25px}.sg-avatar{width:20px;height:20px;flex-basis:20px;font-size:13px}.sg-player-heading strong:not(.sg-player-balance-value){font-size:13px}.sg-player .sg-seat-balance{font-size:11px;gap:2px}.sg-player .sg-player-balance-value{font-size:14px}.sg-player .sg-hand-type{font-size:12px;line-height:21px}.sg-player .sg-live-rank{font-size:17px;padding:3px 4px;border-radius:5px}.sg-seat-cards{gap:3px;min-height:34px;height:34px}.sg-seat-cards .sg-mini-card{width:23px;height:34px;font-size:12px;border-radius:4px}.sg-seat-cards .sg-card-suit{font-size:13px}.sg-player-error{font-size:11px;line-height:19px}.sg-seat-delta{font-size:16px!important;line-height:18px;padding:0}
 .sg-public-area{grid-column:1;grid-row:2;height:144px;align-self:stretch;width:100%;margin:0}.sg-public-area h3{height:60px;line-height:1.3;font-size:18px;margin:0 0 4px;padding:0 24px 20px}.sg-selection-timer{font-size:12px!important}.sg-camps{gap:6px}.sg-camp{height:80px;border-radius:9px;padding:8px 6px;gap:5px}.sg-camp>strong{font-size:18px}.sg-public-cards,.sg-no-public{height:35px;min-height:35px;gap:3px;font-size:12px}.sg-public-cards .sg-mini-card{width:23px;height:35px;font-size:13px}.sg-public-cards .sg-card-suit{font-size:14px}.sg-deck{width:20px;height:30px;top:5px;right:2px}.sg-deck .sg-mini-card{width:20px;height:30px;font-size:11px}.sg-center-effects{height:60px}.sg-effect-announcement[data-count="2"]{font-size:24px}.sg-effect-announcement[data-count="3"]{font-size:28px}.sg-effect-announcement[data-count="4"]{font-size:31px}.sg-effect-announcement[data-count="5"]{font-size:32px}
 .sg-table-stage.active #selfSeat{grid-column:1;grid-row:3;justify-self:stretch;width:100%;height:180px;padding:8px;border-radius:11px}.sg-table-stage.active #selfInfo{display:grid;height:46px;min-height:46px;grid-template-rows:26px;gap:4px}.sg-table-stage.active #selfInfo .sg-player-heading{column-gap:7px}.sg-table-stage.active #selfInfo .sg-player-heading>.sg-live-rank{margin-left:5px}.sg-table-stage.active #selfInfo .sg-player-heading strong:not(.sg-player-balance-value){font-size:13px}.sg-table-stage.active #selfInfo .sg-live-rank{font-size:17px}.sg-table-stage.active #selfInfo .sg-player-error{top:27px;height:19px}.sg-table-stage.active #selfInfo .sg-seat-login{top:26px}
 .sg-submit-row{--sg-preview-width:133px;--sg-action-width:82px;grid-template-columns:minmax(45px,1fr) var(--sg-preview-width) var(--sg-action-width);height:55px;gap:4px}.sg-submit-row #preview{font-size:12px;line-height:17px;max-height:51px}.sg-selection-preview{height:46px;min-height:46px;gap:2px}.sg-selection-preview .sg-mini-card{width:25px;height:38px;font-size:13px}.sg-submit-actions{width:var(--sg-action-width)}.sg-submit-actions .sg-button{width:100%;min-height:38px;font-size:12px;padding:7px 8px}.sg-hand{height:62px;min-height:62px;gap:4px;padding:8px 0 0}.sg-hand .sg-card{flex:0 1 37px;width:37px;height:54px;border-radius:5px;padding:3px 1px;gap:2px}.sg-hand .sg-card>strong{font-size:18px}.sg-hand .sg-card-suit{font-size:15px}.sg-card.selected{transform:translateY(-7px)}#selfInfo>.sg-seat-delta{top:26px;height:20px;font-size:16px!important;line-height:20px}
 .sg-table-stage.active #selfInfo .sg-auto-status{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.sg-table-stage.active #selfInfo .sg-self-status{font-size:10px;padding:2px 3px}
 #playArea.surrendered .sg-hand{height:117px;min-height:117px}
 .sg-table-stage.waiting{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.sg-table-stage.waiting .sg-player{min-height:120px;height:auto;padding:8px;gap:3px;border-radius:10px}.sg-table-stage.waiting #selfInfo{gap:3px}.sg-table-stage.waiting .sg-player-heading{min-height:24px;align-items:center;flex-wrap:nowrap}.sg-table-stage.waiting .sg-player-heading strong:not(.sg-player-balance-value){font-size:13px}.sg-table-stage.waiting .sg-player-heading .sg-self-status,.sg-table-stage.waiting .sg-player-heading .sg-host-status,.sg-table-stage.waiting .sg-player-heading .sg-bot-status{font-size:10px;padding:2px 3px}.sg-table-stage.waiting .sg-player-status,.sg-table-stage.waiting .sg-seat-balance{font-size:13px}.sg-table-stage.waiting .sg-player-balance-value{font-size:16px}.sg-table-stage.waiting .sg-player.empty .sg-button{font-size:13px;min-height:38px}.sg-bot-controls{gap:3px}.sg-bot-mode{font-size:11px;height:30px;min-height:30px;padding:4px 3px}.sg-remove-bot{font-size:10px!important;height:30px;min-height:30px!important;padding:4px!important}.sg-notice{left:12px;right:12px;top:67px;font-size:12px;padding:7px 9px}
 .sg-workspace summary{font-size:14px}.sg-workspace details{margin-top:12px;padding-top:9px}.sg-final-summary{padding:18px 10px}.sg-final-summary h2{font-size:23px}
 .sg-summary-scroll{overflow:visible}.sg-summary-players{display:flex;flex-direction:column;gap:12px}.sg-summary-labels{display:none}.sg-summary-player-profile{min-height:0;display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:9px;align-items:center;text-align:left;padding:12px}.sg-summary-player-profile .sg-avatar{width:30px;height:30px;flex-basis:30px}.sg-summary-player-name{font-size:14px}.sg-summary-total{font-size:18px}.sg-summary-player-rounds{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:0 8px 10px}.sg-summary-player-round{display:flex;flex-direction:column;justify-content:center;gap:4px;height:58px;border:0}.sg-summary-round-caption{display:block;font-size:12px;color:#657784}.sg-summary-amount{font-size:17px}
 /* Native table semantics remain; mobile cells form readable result cards. */
 .sg-table-wrap{overflow:visible;border:0;background:transparent}.sg-result-table{display:block;min-width:0;width:100%;font-size:13px}.sg-result-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.sg-result-table tbody{display:flex;flex-direction:column;gap:12px}.sg-result-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 10px;padding:12px;background:#f7fafc;border:1px solid #dce7ef;border-radius:10px}.sg-result-table tbody tr.self{background:#edf5fa;border-color:#89aac0}.sg-result-table td,.sg-result-table .self td{padding:0;border:0;background:transparent;min-width:0}.sg-result-player{grid-column:1;grid-row:1;font-weight:700;overflow-wrap:anywhere}.sg-result-delta{grid-column:2;grid-row:1;text-align:right!important;font-weight:750;font-size:16px}.sg-result-hand{grid-column:1/-1;grid-row:2;display:flex;align-items:center;gap:10px}.sg-result-hand>small{font-size:13px}.sg-result-cards{min-width:0;gap:4px}.sg-result-factors{grid-column:1/-1;grid-row:3}.sg-factors{white-space:normal;overflow-wrap:anywhere;font-size:13px;line-height:1.7}.sg-result-hand-type{gap:6px;margin-bottom:3px}.sg-result-hand-multiplier{font-size:12px}.sg-result-badges{gap:3px;margin-left:5px}.sg-result-badge{font-size:10px;padding:2px 4px}

}
@media(max-width:360px){
 .sg-room-entry{padding:11px 10px;column-gap:7px}.sg-room-entry-heading{gap:5px}.sg-room-code{font-size:16px}.sg-room-tier{font-size:14px}.sg-room-status{font-size:12px}.sg-room-tier-note{font-size:11px}

 .sg-bot-mode{appearance:none;font-size:10px;padding:4px 12px 4px 4px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='m1 1 3 3 3-3' fill='none' stroke='%23244a64'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 3px center}.sg-remove-bot{padding:4px 2px!important}
 #roomTierDetails{font-size:11px;line-height:16px}
 .sg-title .account{gap:5px}.sg-title h1{font-size:25px}.sg-room-actions .sg-button{font-size:14px}.sg-room-heading,.sg-room-heading strong{font-size:12px}.sg-room-heading{gap:4px}#phase{font-size:11px;min-width:66px}.sg-inline-actions .sg-button{font-size:12px;padding:7px 8px}.sg-table-stage.active .sg-player:not(#selfSeat){padding:6px}.sg-player-heading{gap:3px}.sg-player-heading strong:not(.sg-player-balance-value){font-size:11px}.sg-avatar{width:20px;height:20px;flex-basis:20px;font-size:13px}.sg-player .sg-live-rank{font-size:15px;padding:3px 4px}.sg-player .sg-player-balance-value{font-size:13px}.sg-seat-cards{gap:2px}.sg-seat-cards .sg-mini-card{width:21px;height:32px}.sg-camp>strong{font-size:17px}.sg-public-cards{gap:2px}.sg-public-cards .sg-mini-card{width:19px;height:33px;font-size:12px}.sg-effect-announcement[data-count="5"]{font-size:31px}.sg-table-stage.active #selfSeat{padding:7px}.sg-submit-row{--sg-preview-width:111px;--sg-action-width:68px;grid-template-columns:minmax(37px,1fr) var(--sg-preview-width) var(--sg-action-width);gap:3px}.sg-selection-preview .sg-mini-card{width:20px;height:32px;font-size:11px}.sg-submit-actions .sg-button{padding:7px 6px;font-size:11px}.sg-hand{gap:2px}.sg-hand .sg-card{flex-basis:32px;width:32px;height:52px}
}
/* These finite animation names are also consumed by the stage scheduler. */
.sg-hand-fade{opacity:0;animation:sg-opponent-hand-fade var(--sg-duration,.45s) ease-out var(--sg-delay,0s) both;will-change:opacity;transition:none}
.sg-table-stage.paused .sg-hand-fade{animation-play-state:paused}
@keyframes sg-opponent-hand-fade{from{opacity:1}to{opacity:0}}
@media(prefers-reduced-motion:reduce){.sg-hand-fade{animation:none!important}}
.sg-deal-card{animation:sg-deal-from-pile var(--sg-duration,.65s) cubic-bezier(.22,.65,.3,1) var(--sg-delay,0s) both;will-change:transform,opacity}.sg-lock-card{animation:sg-lock-to-table .6s cubic-bezier(.22,.65,.3,1) var(--sg-lock-delay,0s) both;will-change:transform,opacity;position:relative;z-index:3;transition:none}.sg-sort-gather{animation:sg-sort-to-center var(--sg-duration,.5s) ease-in-out var(--sg-delay,0s) both;will-change:transform}.sg-sort-spread{animation:sg-sort-from-center var(--sg-duration,.5s) ease-in-out var(--sg-delay,0s) both;will-change:transform}.sg-collect-card{animation:sg-return-to-pile var(--sg-duration,1s) cubic-bezier(.5,.05,.3,1) var(--sg-delay,0s) both;will-change:transform,opacity;position:relative;z-index:5}.sg-deal-card,.sg-sort-gather,.sg-sort-spread,.sg-collect-card{transition:none}.sg-collected-card{opacity:0;visibility:hidden;pointer-events:none}.sg-reveal-card{animation:sg-flip-card .42s ease-out both}.sg-rank-pop{animation:sg-rank-change .6s cubic-bezier(.25,.8,.3,1) both}.stage-round #stageTitle,.stage-duel #stageTitle{color:#244a64;animation:sg-round-intro .8s ease both}.sg-table-stage.active .sg-player.effect-critical.animate-effect{animation:sg-critical-flash .6s ease-in-out}.sg-table-stage.active .sg-player.effect-kill.animate-effect{animation:sg-kill-flash .6s ease-in-out}
.sg-table-stage.active .sg-player.effect-critical.animate-effect.multiplier-effect{animation:sg-critical-multiplier-flash .6s ease-in-out}.sg-table-stage.active .sg-player.effect-kill.animate-effect.multiplier-effect{animation:sg-kill-multiplier-flash .6s ease-in-out}
.sg-table-stage.paused .sg-deal-card,.sg-table-stage.paused .sg-lock-card,.sg-table-stage.paused .sg-sort-gather,.sg-table-stage.paused .sg-sort-spread,.sg-table-stage.paused .sg-collect-card,.sg-table-stage.paused .sg-rank-pop,.sg-table-stage.paused .sg-reveal-card,.sg-table-stage.paused #stageTitle,.sg-table-stage.paused .animate-effect,.sg-table-stage.paused .animate-announcement{animation-play-state:paused}
@keyframes sg-deal-from-pile{from{opacity:0;transform:translate(var(--sg-dx,0px),var(--sg-dy,-100px)) scale(.65) rotate(-8deg)}20%{opacity:1}to{opacity:1;transform:none}}
@keyframes sg-lock-to-table{from{opacity:1;transform:translate(var(--sg-lock-x,0px),var(--sg-lock-y,-30px)) scale(var(--sg-lock-scale,.82))}to{opacity:1;transform:none}}
@keyframes sg-sort-to-center{from{transform:none}to{transform:translateX(var(--sg-sort-x,0px))}}
@keyframes sg-sort-from-center{from{transform:translateX(var(--sg-sort-x,0px))}to{transform:none}}
@keyframes sg-return-to-pile{from{opacity:1;transform:none}75%{opacity:1}to{opacity:0;transform:translate(var(--sg-dx,0px),var(--sg-dy,-100px)) scale(.55) rotate(8deg)}}
@keyframes sg-rank-change{0%{opacity:.2;transform:translateY(-10px) scale(.75)}45%{opacity:1;transform:scale(1.13)}100%{opacity:1;transform:none}}
@keyframes sg-round-intro{from{opacity:0;transform:scale(.8)}30%,75%{opacity:1;transform:scale(1)}to{opacity:1}}
@keyframes sg-flip-card{from{transform:rotateY(90deg)}to{transform:rotateY(0)}}
@keyframes sg-critical-flash{50%{background:#ffdfb5;border-color:#d39943;box-shadow:0 0 12px #d79a3f55}}
@keyframes sg-kill-flash{50%{background:#eedffb;border-color:#ab7ace;box-shadow:0 0 12px #a36ed455}}
@keyframes sg-critical-multiplier-flash{50%{background:#ffdfb5;border-color:#d39943;box-shadow:0 0 12px #d79a3f55}}
@keyframes sg-kill-multiplier-flash{50%{background:#eedffb;border-color:#ab7ace;box-shadow:0 0 12px #a36ed455}}
@keyframes sg-announcement-pop{from{opacity:0;transform:scale(.7)}18%{opacity:1;transform:scale(1.08)}35%,80%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(1.03)}}
.sg-seat-delta.sg-delta-fade{opacity:0}
@media(prefers-reduced-motion:reduce){.sg-card,.sg-deck{transition:none}.sg-deal-card,.sg-lock-card,.sg-sort-gather,.sg-sort-spread,.sg-collect-card,.sg-rank-pop,.sg-reveal-card,.sg-effect-announcement,.sg-table-stage.active .sg-player.animate-effect,.stage-round #stageTitle,.stage-duel #stageTitle{animation:none!important}.sg-seat-delta{will-change:auto}}
