/* Community rooms: local artwork, warm glass, readable mobile controls. */
.refresh-design .community-screen { padding: 22px 16px 20px; color: #eedfc6; }
.community-screen *, .community-screen *::before, .community-screen *::after { box-sizing: border-box; }
.community-screen [hidden] { display: none !important; }
.cc-heading { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; }
.cc-heading > div { min-width: 0; flex: 1; }
.cc-heading h1 { margin: 5px 0 0; font-size: clamp(30px,8.4vw,38px); line-height: 1.1; font-weight: 400; }
.cc-kicker { display: block; font-size: 8px; letter-spacing: .1em; color: #bca27b; line-height: 1.4; }
.cc-back,.cc-icon-button { display: grid; place-items: center; flex: none; width: 40px; height: 42px; padding: 0; border: 1px solid #ccb3862c; border-radius: 9px; color: #d9c7a8; background: #d5b77f09; cursor: pointer; }
.cc-back svg,.cc-icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cc-back:hover,.cc-icon-button:hover { background: #d5b77f18; }
.cc-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cc-panel { position: relative; min-width: 0; border: 1px solid #d1b27c2e; border-radius: 12px; background: linear-gradient(145deg,#e1c8970d,#846d4007); box-shadow: inset 0 1px #ffefd60a; }
.cc-status { margin: -9px 0 15px; padding: 11px 12px; color: #c9b494; background: #c9b48d08; border: 1px solid #b8996726; border-radius: 8px; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.cc-status:empty { display: none; }
.cc-status.is-error { color: #edb69e; border-color: #b97b5c4f; background: #9d543c12; }
.cc-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; min-width: 0; padding: 11px 14px; border: 1px solid #cbaa7338; border-radius: 8px; color: #e1c9a0; background: #d3b7830d; font-size: 13px; line-height: 1.2; cursor: pointer; transition: background .16s,border-color .16s; }
.cc-button:hover { background: #d4b37b21; border-color: #d4b37b69; }
.cc-button:active { background: #d4b37b32; }
.cc-button.cc-primary { color: #ffe5ae; border-color: #ddbc7861; background: linear-gradient(135deg,#b48b443d,#876b292b); box-shadow: inset 0 1px #ffe5aa16; }
.cc-button.cc-primary:hover { background: #bc975047; }
.cc-button.cc-danger { color: #e2a18a; border-color: #ba6e4a45; background: #ae583114; }
.community-screen button:disabled { opacity: .42; cursor: not-allowed; }
.community-screen button:focus-visible,.community-screen input:focus-visible,.community-screen select:focus-visible,.community-screen textarea:focus-visible { outline: 2px solid #e2bc7a; outline-offset: 3px; }
.community-screen input,.community-screen textarea,.community-screen select { display: block; width: 100%; min-width: 0; margin: 0; border: 1px solid #d2ba852e; border-radius: 8px; background: #080b0963; color: #f2e4ca; padding: 12px; font-size: 16px; line-height: 1.3; box-shadow: inset 0 1px 4px #0002; }
.community-screen input::placeholder,.community-screen textarea::placeholder { color: #9b8a70; opacity: 1; }
.community-screen select { min-height: 44px; padding-right: 25px; color-scheme: dark; font-size: 12px; text-overflow: ellipsis; }
.community-screen select option { color: #ead8b9; background: #211b14; }
.community-screen input:disabled,.community-screen textarea:disabled,.community-screen select:disabled { opacity: .5; }
.community-screen label { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: #c4b08d; font-size: 12px; }
.cc-small { font-size: 10px; line-height: 1.5; }
.cc-muted { color: #aa9779; }
.cc-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.cc-section-heading h2 { min-width: 0; margin: 0; color: #e9d8b8; font-size: 20px; line-height: 1.2; font-weight: 400; }
.cc-count { flex: none; padding: 5px 7px; border: 1px solid #cbb17a29; border-radius: 5px; font-size: 10px; color: #b59d74; }
.cc-count:empty { display: none; }
.cc-footnote { margin: 18px 0 0; color: #9e8d73; font-size: 10px; line-height: 1.6; }
.cc-empty { padding: 27px 18px; border: 1px dashed #b69c6838; border-radius: 11px; text-align: center; grid-column: 1/-1; }
.cc-empty .cc-mark { margin: 0 auto 13px; width: 52px; height: 52px; }
.cc-empty h3 { margin: 0; color: #dbc9a9; font-weight: 400; font-size: 19px; }
.cc-empty p { max-width: 290px; margin: 9px auto 0; color: #a9977c; font-size: 12px; line-height: 1.6; }
.cc-mark { display: grid; place-items: center; flex: none; width: 54px; height: 54px; border: 1px solid #c2a46561; border-radius: 14px; color: #e5c486; background: radial-gradient(circle at 30% 15%,#c7a8662b,transparent 65%),#211b12; box-shadow: inset 0 0 0 4px #090b071f,inset 0 1px #e8d2a921,0 3px 10px #0003; }
.cc-mark svg { width: 65%; height: 65%; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.cc-mark[data-kind="clan"] { border-radius: 50% 50% 42% 42%; color: #c5cba2; border-color: #c5cba247; background-color: #19201a; }
.cc-mark[data-kind="title"] { border-radius: 9px; color: #c8b695; }
.cc-mark-glyph { font-size: 25px; line-height: 1; }
/* A clan's identity, then its actual members and results. */
.cc-my-clan { margin-bottom: 16px; }
.cc-my-clan:empty { display: none; }
.cc-my-clan > .cc-panel { padding: 18px; overflow: hidden; }
.cc-clan-hero { display: flex; align-items: center; gap: 13px; }
.cc-clan-hero > div { min-width: 0; flex: 1; }
.cc-clan-hero h2 { margin: 4px 0 5px; color: #f1dfb8; font-size: 24px; line-height: 1.15; overflow-wrap: anywhere; font-weight: 400; }
.cc-clan-hero p { color: #afaf90; font-size: 10px; margin: 0; line-height: 1.4; }
.cc-my-clan .cc-button { width: 100%; margin-top: 15px; }
.cc-clan-welcome { display: flex; align-items: center; gap: 13px; }
.cc-clan-welcome h2 { font-size: 20px; font-weight: 400; margin: 0 0 7px; }
.cc-clan-welcome p { color: #b8a686; font-size: 12px; line-height: 1.5; margin: 0; }
.cc-clan-tools { padding: 12px; margin-bottom: 25px; }
.cc-search-form { display: flex; align-items: center; gap: 8px; }
.cc-input-icon { position: relative; min-width: 0; flex: 1; }
.cc-input-icon svg { position: absolute; top: 14px; left: 10px; width: 18px; height: 18px; stroke: #a78e64; stroke-width: 1.6; fill: none; }
.cc-input-icon input { padding-left: 34px; padding-right: 9px; font-size: 16px; min-height: 44px; }
.cc-search-button { padding-inline: 12px; }
.cc-create-toggle { margin-top: 9px; width: 100%; border-style: dashed; }
.cc-create-toggle span { color: #d3bd93; font-size: 20px; line-height: .7; }
.cc-create-form { display: grid; gap: 15px; padding: 2px 0 0; }
.cc-create-form > p { margin: 14px 0 1px; color: #b5a17f; }
.cc-create-form textarea { resize: vertical; min-height: 86px; max-height: 170px; font-size: 14px; }
.cc-form-actions { display: flex; gap: 9px; }
.cc-form-actions > button { flex: 1; }
.cc-clan-list { display: grid; gap: 10px; }
.cc-clan-card { padding: 15px; }
.cc-clan-card-head { display: flex; align-items: center; gap: 11px; min-width: 0; }
.cc-clan-card .cc-mark { width: 44px; height: 44px; border-radius: 11px; }
.cc-clan-card-head > div { flex: 1; min-width: 0; }
.cc-clan-card h3 { margin: 0 0 5px; font-size: 19px; color: #ecd9b5; font-weight: 400; overflow-wrap: anywhere; }
.cc-clan-tag { color: #baa374; font-size: 10px; letter-spacing: .05em; }
.cc-clan-description { color: #aa9b83; font-size: 12px; line-height: 1.5; margin: 11px 0 0; overflow-wrap: anywhere; }
.cc-clan-meta { display: flex; flex-wrap: wrap; gap: 8px 15px; margin-top: 13px; padding-top: 11px; border-top: 1px solid #c8a76c1c; font-size: 10px; line-height: 1.5; color: #ad9e83; }
.cc-clan-meta strong { color: #d9c698; font-weight: 400; margin-left: 4px; }
.cc-clan-card .cc-button { min-height: 36px; padding: 7px 10px; font-size: 11px; }
.cc-clan-detail { padding: 17px; margin-top: 20px; scroll-margin-top: 85px; }
.cc-clan-detail .cc-section-heading { align-items: flex-start; }
.cc-clan-detail .cc-section-heading h2 { overflow-wrap: anywhere; }
.cc-clan-detail .cc-clan-description { margin: 12px 0 16px; }
.cc-detail-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 16px 0; padding: 12px 0; border-top: 1px solid #c8a76c29; border-bottom: 1px solid #c8a76c29; gap: 10px; }
.cc-detail-stats > div { min-width: 0; }
.cc-detail-stats span { display: block; color: #a99a7b; font-size: 10px; margin-bottom: 7px; }
.cc-detail-stats strong { display: block; font-weight: 400; font-size: 17px; color: #e0c69a; overflow-wrap: anywhere; }
.cc-member-list { margin: 0 0 17px; padding: 0; list-style: none; }
.cc-member { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #c8a76c14; }
.cc-member-avatar { display: grid; place-items: center; flex: none; width: 33px; height: 33px; border: 1px solid #c5ae7c34; border-radius: 50%; background: #c6ad7010; color: #d7bb87; font-size: 16px; }
.cc-member-copy { min-width: 0; flex: 1; }
.cc-member-copy strong { display: block; color: #e4d2b2; font-weight: 400; font-size: 13px; overflow-wrap: anywhere; }
.cc-member-copy span { color: #a69a7f; font-size: 9px; line-height: 1.5; }
.cc-member-value { max-width: 42%; text-align: right; color: #d5bd92; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.cc-member-value small { display: block; color: #95876f; font-size: 9px; }
.cc-clan-detail > .cc-button { width: 100%; }
.cc-leave-confirm { margin-top: 13px; padding: 13px; border: 1px solid #b2764d44; border-radius: 9px; background: #8b472514; }
.cc-leave-confirm p { margin: 0 0 12px; color: #c6ad8c; font-size: 12px; line-height: 1.5; }
/* Inventory is a dressing table, with no fabricated items or ownership. */
.cc-dressing { padding: 17px; margin-bottom: 18px; }
.cc-equipped { display: flex; align-items: center; gap: 15px; min-height: 66px; }
.cc-equipped .cc-mark { width: 66px; height: 66px; border-radius: 50%; }
.cc-equipped-copy { flex: 1; min-width: 0; }
.cc-equipped-copy h3 { margin: 0 0 6px; font-size: 21px; font-weight: 400; overflow-wrap: anywhere; }
.cc-equipped-copy p { margin: 0; color: #b7a37f; font-size: 11px; line-height: 1.5; }
.cc-equipped-title { color: #dfbf81 !important; }
.cc-tabs { display: flex; align-items: stretch; gap: 4px; padding: 4px; margin: 0 0 18px; border: 1px solid #c3a87024; border-radius: 10px; background: #070b0940; }
.cc-tabs button { flex: 1; min-width: 0; min-height: 42px; padding: 8px 5px; color: #a9997b; background: transparent; border: 1px solid transparent; border-radius: 7px; font-size: 12px; line-height: 1.3; cursor: pointer; }
.cc-tabs button[aria-selected="true"] { color: #edce95; background: #d4b17a16; border-color: #cfac6833; box-shadow: inset 0 1px #f5d8980e; }
.cc-tabs button span { margin-left: 4px; font-size: 10px; color: #c5ae81; }
.cc-inventory-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.cc-item { display: flex; flex-direction: column; min-width: 0; padding: 16px 12px 12px; overflow: hidden; }
.cc-item.is-equipped { border-color: #c5b48275; background: linear-gradient(150deg,#b7bb751b,#8eaa7910); }
.cc-item.is-locked { background: #8b73420a; }
.cc-item .cc-mark { align-self: center; width: 72px; height: 72px; margin: 9px 0 20px; transform: rotate(-6deg); }
.cc-item:nth-child(even) .cc-mark { transform: rotate(6deg); }
.cc-item.is-locked .cc-mark { filter: saturate(.4); opacity: .6; }
.cc-item-type { font-size: 8px; letter-spacing: .05em; color: #a58e64; }
.cc-item h3 { font-size: 18px; font-weight: 400; line-height: 1.15; margin: 6px 0 9px; color: #e6d1aa; overflow-wrap: anywhere; }
.cc-item p { color: #ad9b7b; font-size: 10px; line-height: 1.5; margin: 0 0 15px; }
.cc-item .cc-button,.cc-item-lock { margin-top: auto; width: 100%; min-height: 40px; padding: 9px 6px; font-size: 11px; }
.cc-item-lock { display: block; color: #a6977d; line-height: 1.5; border-top: 1px solid #a6977d24; }
.cc-profile-title { display: block; color: #dfbf81 !important; font-size: 9px !important; line-height: 1.4; }
.home-profile .profile-avatar .cc-mark { width: 100%; height: 100%; border: 0; border-radius: inherit; box-shadow: none; }
.home-profile .profile-avatar .cc-mark svg { width: 24px; height: 24px; }
.home-profile .profile-avatar .cc-mark-glyph { font-size: 24px; }
/* Promo receipt appears only after confirmed server redemption. */
.cc-promo-card { text-align: center; overflow: hidden; padding: 25px 22px 22px; background: radial-gradient(ellipse at 50% 0,#bca36a1a,transparent 60%),linear-gradient(140deg,#d2b98c0b,#88684308); }
.cc-ticket-art { margin: 0 auto 17px; width: 112px; transform: rotate(-7deg); }
.cc-ticket-art svg { display: block; width: 100%; fill: #85622a2b; stroke: #d8b979; stroke-width: 1.5; stroke-linejoin: round; }
.cc-ticket-line { fill: none; stroke-dasharray: 3 3; stroke: #d1b77c88; }
.cc-ticket-star { fill: #dfc992; stroke: #efd9a6; }
.cc-promo-card h2 { margin: 0 0 10px; color: #ead3a8; font-size: 27px; line-height: 1.2; font-weight: 400; }
.cc-promo-card > p { color: #baa482; font-size: 12px; line-height: 1.6; margin: 0 0 23px; }
#cc-promo-form { display: grid; gap: 10px; margin: 0 0 16px; }
#cc-promo-code { text-align: center; letter-spacing: .08em; font-size: 16px; min-height: 53px; text-transform: uppercase; }
#cc-promo-form .cc-button { min-height: 48px; font-size: 15px; }
.cc-receipt { margin-top: 16px; padding: 20px; border-color: #b5c17d5e; background: #8fa56b10; text-align: center; }
.cc-receipt h2 { color: #cdd7a8; font-size: 20px; font-weight: 400; margin: 0 0 12px; }
.cc-receipt strong { display: block; font-weight: 400; font-size: 30px; line-height: 1.1; color: #eee0ac; overflow-wrap: anywhere; }
.cc-receipt p { margin: 11px 0 0; color: #b4b291; font-size: 12px; line-height: 1.5; }
.cc-note { display: flex; align-items: flex-start; gap: 10px; margin: 20px 9px 0; }
.cc-note svg { flex: none; width: 21px; height: 21px; stroke: #a68e61; stroke-width: 1.5; fill: none; }
.cc-note p { margin: 0; color: #a59479; font-size: 11px; line-height: 1.6; }
/* Compact rankings keep long names and large totals inside the viewport. */
.cc-period-tabs { gap: 2px; padding: 3px; }
.cc-period-tabs button { font-size: 11px; padding-inline: 3px; }
.cc-rating-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc-rating-filters label { font-size: 10px; gap: 7px; }
.cc-rating-description { color: #a7977a; font-size: 11px; line-height: 1.6; margin: 12px 1px 17px; min-height: 2.4em; }
.cc-rating-me { margin: 0 0 24px; padding: 15px; border-color: #c1a77550; }
.cc-me-caption { font-size: 9px; color: #c8ae7f; margin-bottom: 12px; letter-spacing: .06em; }
.cc-rating-me .cc-rank-row { padding: 0; border: 0; }
.cc-rating-me .cc-rank-position { color: #debd7e; }
.cc-rating-me > p { margin: 0; color: #a8987b; line-height: 1.6; font-size: 12px; }
.cc-ranking-list { list-style: none; margin: 0; padding: 0; }
.cc-rank-row { display: flex; align-items: flex-start; gap: 10px; padding: 15px 1px; border-bottom: 1px solid #c0a67921; min-width: 0; }
.cc-rank-position { flex: none; width: 28px; padding-top: 1px; text-align: center; color: #9e8c6e; font-size: 16px; font-variant-numeric: tabular-nums; }
.cc-rank-row[data-rank="1"] .cc-rank-position { color: #e2c17c; }
.cc-rank-row[data-rank="2"] .cc-rank-position { color: #cdcbc4; }
.cc-rank-row[data-rank="3"] .cc-rank-position { color: #b9936e; }
.cc-rank-copy { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.cc-rank-name { display: block; width: 100%; color: #e5d1ad; font-size: 14px; overflow-wrap: anywhere; line-height: 1.3; white-space: normal; }
.cc-rank-vip { margin-right: 4px; }
.cc-rank-clan { display: block; width: 100%; margin: 0; color: #d7c4a2; font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; white-space: normal; }
.cc-rank-lines { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; min-width: 0; }
.cc-rank-played, .cc-rank-prize, .cc-rank-unit, .cc-rank-score { display: block; width: 100%; max-width: 100%; margin: 0; line-height: 1.4; overflow-wrap: anywhere; white-space: normal; flex: 0 0 auto; }
.cc-rank-played, .cc-rank-score { color: #e6d3b4; font-size: 13px; font-variant-numeric: tabular-nums; }
.cc-rank-prize { color: #e2c17c; font-size: 13px; }
.cc-rank-unit { color: #9e8c70; font-size: 10px; }
.cc-rank-value { min-width: 0; width: 37%; text-align: right; color: #d4c08f; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.cc-rank-value small { display: block; margin-top: 4px; color: #9e8c70; font-size: 9px; }
.cc-rank-row.is-self .cc-rank-name { color: #ffe1a2; }
.cc-rating-board .cc-empty { list-style: none; }
/* Period changes keep the visible layout steady; errors still have a visible message. */
#view-rating { overflow-anchor: none; }
#view-rating #cc-rating-status:not(.is-error) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#view-rating #cc-rating-me { min-height: 120px; }
#view-rating .cc-rating-board > .cc-section-heading { min-height: 48px; align-items: flex-start; }
#view-rating #cc-rating-updated { flex: none; min-width: 75px; text-align: right; white-space: nowrap; }
#view-rating.cc-rating-loading #cc-rating-updated { color: #d8bc89; }
#view-rating.cc-rating-loading #cc-rating-me,
#view-rating.cc-rating-loading #cc-rating-list { opacity: .65; }
@media(min-width:480px) { .refresh-design .community-screen { padding: 27px 24px 22px; } .cc-item { padding: 20px 18px 16px; } .cc-clan-tools { padding: 16px; } .cc-promo-card { padding: 32px 38px 28px; } .cc-heading { margin-bottom: 25px; } .cc-inventory-grid { gap: 15px; } }
@media(max-width:359px) { .refresh-design .community-screen { padding-inline: 12px; } .cc-heading { gap: 9px; } .cc-back,.cc-icon-button { width: 35px; } .cc-item { padding: 14px 10px 10px; } .cc-item h3 { font-size: 17px; } .cc-inventory-grid { gap: 9px; } .cc-clan-card { padding: 12px; } .cc-clan-card-head { gap: 8px; } .cc-clan-card h3 { font-size: 17px; } .cc-clan-card .cc-mark { width: 37px; height: 37px; } .cc-clan-card .cc-button { font-size: 10px; padding-inline: 8px; } .cc-promo-card { padding: 22px 16px 19px; } .cc-rank-row { gap: 7px; } .cc-rank-value { width: 36%; font-size: 12px; } .cc-rank-name { font-size: 13px; } .cc-period-tabs button { font-size: 10px; } }
@media(prefers-reduced-motion:reduce) { .cc-button { transition: none; } }
/* Clans: treasury and management stay within the clan, forms open on demand. */
.cc-clan-tabs { margin-top: 23px; }
.cc-clan-tabs button { font-size: 11px; }
.cc-clan-tabs button span { display: inline-block; margin-left: 2px; }
.cc-clan-detail { margin-bottom: 23px; }
.cc-clan-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cc-access-badge { display: inline-flex; padding: 5px 7px; border: 1px solid #b4c58932; border-radius: 5px; color: #b8c599; background: #899b5a0b; font-size: 9px; line-height: 1.2; }
.cc-access-badge[data-access="closed"] { color: #c1aa85; border-color: #c1aa8536; background: #ac936210; }
.cc-treasury { margin: 18px 0; padding: 18px 15px 15px; border: 1px solid #d4b9763f; border-radius: 10px; background: radial-gradient(ellipse at 0 0,#b8a36216,transparent 70%),#0b100c42; }
.cc-treasury-balance { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; min-width: 0; margin: 12px 0 10px; }
.cc-treasury-balance strong { min-width: 0; max-width: 100%; overflow-wrap: anywhere; font-size: clamp(25px,8vw,35px); line-height: 1.1; font-weight: 400; color: #e7cb8e; font-variant-numeric: tabular-nums; }
.cc-treasury-balance > span { color: #b5a173; font-size: 12px; }
.cc-treasury-note { margin: 0; color: #b6a585; font-size: 11px; line-height: 1.65; }
.cc-owner-management { border: 1px solid #d1b27c28; border-radius: 9px; margin: 18px 0; background: #d2b47508; overflow: hidden; }
.cc-owner-management > summary,.cc-owner-section > summary { min-height: 45px; padding: 13px 12px; color: #d8bd89; font-size: 13px; line-height: 1.4; cursor: pointer; }
.cc-owner-management > summary::marker,.cc-owner-section > summary::marker { color: #a88b53; font-size: 10px; }
.cc-owner-management > summary:focus-visible,.cc-owner-section > summary:focus-visible { outline: 2px solid #d4b174; outline-offset: -3px; }
.cc-owner-management[open] > summary { border-bottom: 1px solid #d1b27c28; }
.cc-owner-section { margin-top: 13px; border-top: 1px solid #d1b27c28; }
.cc-owner-section > summary { padding: 13px 0 2px; }
.cc-owner-form { display: grid; gap: 13px; padding: 16px 12px; }
.cc-owner-form h3,.cc-sent-invites h3 { margin: 0 0 2px; font-size: 16px; font-weight: 400; color: #dbc6a1; }
.cc-owner-form label { font-size: 11px; }
.cc-owner-form textarea { font-size: 16px; resize: vertical; max-height: 160px; min-height: 90px; }
.cc-owner-form select { font-size: 14px; }
.cc-owner-form > p { margin: 0; }
.cc-owner-form + .cc-owner-form { border-top: 1px solid #d1b27c20; }
.cc-owner-section .cc-owner-form { padding: 15px 0 0; }
.cc-player-results { padding: 0 12px 12px; }
.cc-player-results:empty { display: none; }
.cc-player-result { display: flex; align-items: center; gap: 9px; border-top: 1px solid #cbb78621; padding: 13px 0; }
.cc-player-result > div { min-width: 0; flex: 1; }
.cc-player-result strong { display: block; font-size: 13px; font-weight: 400; color: #dfcbae; overflow-wrap: anywhere; }
.cc-player-result small { display: block; margin-top: 5px; font-size: 8px; color: #a7997e; overflow-wrap: anywhere; line-height: 1.5; }
.cc-player-result .cc-button { flex: none; max-width: 43%; padding: 8px; min-height: 40px; font-size: 10px; }
.cc-sent-invites { padding: 4px 12px 15px; }
.cc-sent-invite { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 11px 0; border-bottom: 1px solid #cbb7861a; }
.cc-sent-invite span { min-width: 0; color: #c5b28e; font-size: 12px; overflow-wrap: anywhere; }
.cc-sent-invite small { flex: none; color: #998a70; font-size: 9px; }
.cc-member-heading { margin: 21px 0 3px; font-size: 17px; color: #d3bea0; font-weight: 400; }
.cc-member-list .cc-member { flex-wrap: wrap; gap: 9px; }
.cc-member-list .cc-member-copy { min-width: 80px; }
.cc-member-list .cc-member-value { max-width: 37%; font-size: 11px; }
.cc-member-list .cc-member-value small { font-size: 8px; max-width: 110px; }
.cc-kick-button { margin-left: 42px; width: calc(100% - 42px); min-height: 31px; padding: 6px 8px; font-size: 10px; color: #bc927a; background: transparent; border-color: #b7856224; justify-content: flex-start; }
.cc-kick-button:hover { background: #bc765112; border-color: #b7856244; }
.cc-clan-detail .cc-leave-confirm { margin-bottom: 14px; }
.cc-invitation h3 { margin: 9px 0 12px; font-size: 22px; }
.cc-invitation .cc-form-actions { margin-top: 15px; }
.cc-public-identity { margin-top: 13px; padding: 17px 13px; border: 1px dashed #c6ae7f3b; border-radius: 9px; }
.cc-public-identity > span { display: block; color: #bda781; font-size: 11px; }
.cc-public-identity code { display: block; color: #cbb995; font-size: 11px; overflow-wrap: anywhere; line-height: 1.5; margin: 10px 0 13px; }
.cc-public-identity .cc-button { width: 100%; }
.cc-button.cc-clan-rank-name, .cc-rank-name.cc-clan-rank-name { display: block; width: 100%; min-height: 0; height: auto; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none; color: #e6d0a6; font-size: 14px; line-height: 1.35; text-align: left; overflow-wrap: anywhere; white-space: normal; }
.cc-button.cc-clan-rank-name:hover { color: #ffe3a5; }
@media(min-width:480px) { .cc-owner-form { padding: 18px; } .cc-player-results,.cc-sent-invites { padding-inline: 18px; } .cc-clan-tabs button { font-size: 12px; } }
@media(max-width:359px) { .cc-clan-tabs { gap: 1px; padding: 3px; } .cc-clan-tabs button { font-size: 10px; padding-inline: 3px; } .cc-treasury { padding: 15px 12px; } .cc-owner-management > summary { padding-inline: 10px; } .cc-owner-form,.cc-player-results,.cc-sent-invites { padding-inline: 10px; } }

.chat-toggle { flex: none; display: inline-flex; align-items: center; justify-content: center; height: 42px; margin-left: 8px; padding: 0 12px; border: 1px solid #a7834d40; border-radius: 10px; color: #e4c58e; background: #b2935b12; cursor: pointer; font: 13px Georgia, 'Times New Roman', serif; }
.chat-toggle[aria-expanded="true"] { color: #ffe3a8; border-color: #d4b174; background: linear-gradient(180deg,#4a3420,#2c2118); }
.chat-toggle:hover { border-color: #dabb7b99; }
.chat-toggle:focus-visible { outline: 2px solid #d5b575; outline-offset: 3px; }
.chat-sheet { position: fixed; z-index: 40; left: 50%; bottom: var(--chat-bottom, calc(70px + env(safe-area-inset-bottom, 0px))); transform: translateX(-50%); width: min(100%, 640px); padding: 0 10px; pointer-events: none; }
body.chat-open .mobile-nav { visibility: hidden; pointer-events: none; }
body.chat-open .chat-sheet { bottom: var(--chat-bottom, env(safe-area-inset-bottom, 0px)); }
.chat-sheet[hidden] { display: none !important; }
.chat-sheet-panel { pointer-events: auto; display: flex; flex-direction: column; max-height: var(--chat-max, min(62dvh, 560px)); border: 1px solid #d1b27c55; border-bottom: 0; border-radius: 16px 16px 0 0; background: linear-gradient(180deg,#2a2118,#17130f 32%); box-shadow: 0 -16px 40px #000a; color: #eedfc6; }
.chat-sheet-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 6px; }
.chat-sheet-head > div { min-width: 0; flex: 1; }
.chat-sheet-head h2 { margin: 4px 0 0; font: 22px/1.15 Georgia, 'Times New Roman', serif; font-weight: 400; color: #f3e3c8; }
.chat-sheet-status { margin: 0 14px 8px; padding: 10px 12px; border: 1px solid #b8996726; border-radius: 8px; background: #c9b48d08; color: #c9b494; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.chat-sheet-status:empty { display: none; }
.chat-sheet-status.is-error { color: #edb69e; border-color: #b97b5c4f; background: #9d543c12; }
.chat-messages { list-style: none; margin: 0; padding: 4px 14px 8px; overflow: auto; min-height: 140px; flex: 1; }
.chat-empty { padding: 28px 8px; text-align: center; color: #aa9779; font-size: 13px; }
.chat-message { padding: 10px 0; border-bottom: 1px solid #c0a67921; }
.chat-message-head { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: baseline; }
.chat-message-head strong { color: #e6d0a6; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.chat-playing { color: #cbb892; font-size: 12px; overflow-wrap: anywhere; }
.chat-message-head time { margin-left: auto; color: #aa9779; font-size: 10px; }
.chat-kind { color: #e2c17c; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.chat-message p { margin: 4px 0 0; color: #f0e2cb; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.chat-message.is-rain p { color: #f3ddb0; }
.chat-compose { display: grid; gap: 8px; padding: 10px 14px 14px; border-top: 1px solid #d1b27c28; }
.chat-compose textarea,.chat-rain input { display: block; width: 100%; min-width: 0; margin: 0; border: 1px solid #d2ba852e; border-radius: 8px; background: #080b0963; color: #f2e4ca; padding: 12px; font: 16px/1.35 'Avenir Next', system-ui, sans-serif; box-shadow: inset 0 1px 4px #0002; resize: none; }
.chat-compose textarea::placeholder,.chat-rain input::placeholder { color: #9b8a70; }
.chat-compose textarea:focus-visible,.chat-rain input:focus-visible,.chat-sheet .cc-button:focus-visible { outline: 2px solid #e2bc7a; outline-offset: 3px; }
.chat-rain { display: grid; gap: 8px; }
.chat-rain[hidden] { display: none !important; }
.chat-rain label { color: #c4b08d; font-size: 12px; }
.chat-rain-error { margin: 0; color: #edb69e; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.chat-rain-error[hidden] { display: none !important; }
.chat-compose-actions { display: flex; gap: 8px; }
.chat-compose-actions .cc-button { flex: 1; }
.chat-sheet .cc-button:disabled { opacity: .42; cursor: not-allowed; }
@media (max-width: 380px) { .chat-toggle { margin-left: 6px; padding-inline: 9px; } }
