.game-party-section{margin-top:26px;padding:24px;border:1px solid var(--line);border-radius:22px;background:#f4e8db}.game-party-section .game-detail-head{margin-bottom:17px}.game-party-section .game-detail-head h2{margin:5px 0 0;font-size:clamp(23px,3vw,32px);letter-spacing:-.055em}.game-party-section .game-detail-head p{max-width:420px;font-size:11px}.party-layout{display:grid;grid-template-columns:.9fr 1.1fr;gap:14px;align-items:start}.party-form,.party-directory{padding:18px;border:1px solid var(--line);border-radius:17px;background:#fffdf9}.party-field{display:grid;gap:6px;color:var(--coffee);font-size:10px;font-weight:850}.party-field input,.party-player input{width:100%;min-width:0;padding:10px 11px;border:1px solid rgba(69,39,25,.17);border-radius:10px;background:#fffaf3;color:var(--ink);font:inherit;font-size:11px}.party-field input:focus,.party-player input:focus{outline:2px solid rgba(184,121,66,.24);border-color:var(--caramel)}.party-roster-head,.party-directory-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:17px 0 10px}.party-roster-head b,.party-directory-head h3{display:block;margin:0;color:var(--ink);font-size:12px}.party-roster-head small{display:block;margin-top:2px;color:var(--muted);font-size:9px}.party-add{padding:7px 9px;border:1px solid var(--line);border-radius:999px;background:#fff7ec;color:var(--coffee);font:inherit;font-size:9px;font-weight:800;cursor:pointer}.party-players{display:grid;gap:8px}.party-player{display:grid;grid-template-columns:1fr .82fr auto;gap:7px;align-items:center}.party-player input{padding:9px;font-size:10px}.party-player input::placeholder{font-size:9px}.party-remove{width:29px;height:29px;border:1px solid var(--line);border-radius:9px;background:white;color:var(--muted);cursor:pointer}.party-submit{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:13px;padding:11px 14px;border:0;border-radius:11px;background:var(--cocoa);color:#fffaf3;font:inherit;font-size:10px;font-weight:850;cursor:pointer}.party-submit:hover{background:var(--coffee)}.party-status{min-height:15px;margin:7px 0 0;color:#4d754c;font-size:9px}.party-storage-note{margin:4px 0 0;color:var(--muted);font-size:9px;line-height:1.45}.party-directory{min-height:220px}.party-directory-head{margin-top:0}.party-directory-head .kicker{font-size:8px}.party-directory-head h3{margin-top:3px;font-size:17px}.party-count{padding:6px 9px;border-radius:999px;background:#f1e3d3;color:var(--coffee);font-size:9px;font-weight:800}.party-list{display:grid;gap:9px}.party-empty{padding:21px 12px;border:1px dashed rgba(107,59,35,.2);border-radius:13px;color:var(--muted);font-size:10px;text-align:center}.party-card{padding:12px;border:1px solid rgba(69,39,25,.1);border-radius:13px;background:#fffaf3}.party-card-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.party-card-head h4{margin:0;font-size:12px}.party-card-head time{color:var(--muted);font-size:8px}.party-member-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:10px 0 0;padding:0;list-style:none}.party-member-list li{min-width:0;padding:7px 8px;border-radius:9px;background:#f5eadc;font-size:9px}.party-member-list b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.party-member-list span{display:block;margin-top:2px;color:var(--muted);font-size:8px;overflow-wrap:anywhere}
@media(max-width:800px){.party-layout{grid-template-columns:1fr}}
@media(max-width:500px){.game-party-section{padding:16px}.party-form,.party-directory{padding:13px}.party-player{grid-template-columns:1fr .78fr 28px;gap:5px}.party-player input{padding:8px 7px}.party-player input::placeholder{font-size:8px}.party-member-list{grid-template-columns:1fr 1fr}}

/* Profil komunitas: akun Discord + ID game tersimpan di server. */
.party-form > .party-field{margin-top:12px}
.profile-user{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid var(--line);border-radius:12px;background:#f7ecdf}
.profile-avatar{flex:none;width:36px;height:36px;border-radius:50%;background:#e6d2bc center/cover no-repeat;display:grid;place-items:center;color:var(--coffee);font-size:11px;font-weight:800}
.profile-avatar.is-empty::before{content:'?'}
.profile-user-copy{min-width:0;display:flex;flex-direction:column}
.profile-user-copy small{color:var(--muted);font-size:8.5px;letter-spacing:.08em;text-transform:uppercase}
.profile-user-copy b{font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-user-copy span{color:var(--muted);font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.party-status.is-error{color:#a53f3f}
.party-submit:disabled{opacity:.65;cursor:progress}
.profile-card{padding:12px}
.profile-card-head{display:flex;align-items:center;gap:9px}
.profile-card-avatar{width:34px;height:34px}
.profile-card-id{min-width:0;display:flex;flex-direction:column}
.profile-card-id b{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-card-handle{color:var(--muted);font-size:9px;text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-card-handle:hover{color:var(--coffee);text-decoration:underline}
.profile-card-badge{margin-left:auto;padding:4px 8px;border-radius:999px;background:#efe0cf;color:var(--coffee);font-size:8.5px;font-weight:800;white-space:nowrap}
.profile-card-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:10px 0 0}
.profile-card-meta div{padding:7px 8px;border-radius:9px;background:#f5eadc;min-width:0}
.profile-card-meta dt{color:var(--muted);font-size:8px;text-transform:uppercase;letter-spacing:.06em}
.profile-card-meta dd{margin:2px 0 0;font-size:10px;font-weight:800;color:var(--ink);overflow-wrap:anywhere}
@media(max-width:500px){.profile-grid{grid-template-columns:1fr;gap:0}.profile-grid .party-field+.party-field{margin-top:12px}.profile-card-meta{grid-template-columns:1fr 1fr}}

/* Komunitas: hero party + builder 5-6 pemain (tanpa login). */
.party-hero{position:relative;display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:16px;padding:22px 24px;border-radius:19px;background:linear-gradient(120deg,#3a2114,#6b3b23 55%,#8b4a2b);color:#fffaf3;overflow:hidden}
.party-hero::after{position:absolute;right:-40px;top:-70px;width:230px;height:230px;border-radius:50%;background:radial-gradient(circle,rgba(255,250,243,.2),transparent 70%);content:"";pointer-events:none}
.party-hero-copy{position:relative;z-index:1;max-width:640px}
.party-hero .kicker{color:#f5cda8}
.party-hero h2{margin:8px 0 6px;font-size:clamp(24px,3.4vw,34px);letter-spacing:-.05em}
.party-hero p{margin:0;color:rgba(255,250,243,.8);font-size:11.5px;line-height:1.55}
.party-hero-stats{position:relative;z-index:1;display:flex;gap:10px}
.party-hero-stats div{min-width:84px;padding:10px 12px;border:1px solid rgba(255,250,243,.22);border-radius:13px;background:rgba(255,250,243,.08);text-align:center}
.party-hero-stats b{display:block;font-size:22px;line-height:1.1}
.party-hero-stats span{display:block;margin-top:3px;color:rgba(255,250,243,.7);font-size:8.5px;letter-spacing:.09em;text-transform:uppercase}
.party-form-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:12px}
.party-form-head b{display:block;font-size:12.5px}
.party-form-head small{display:block;margin-top:2px;color:var(--muted);font-size:9px;line-height:1.4}
.party-add:disabled{opacity:.55;cursor:not-allowed}
.party-members{margin-top:13px}
.party-members-head,.party-player{display:grid;grid-template-columns:1.15fr 1fr .95fr .7fr 30px;gap:7px;align-items:center}
.party-members-head{margin-bottom:6px;padding:0 2px;color:var(--muted);font-size:8px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}
.party-players{display:grid;gap:7px}
.party-player input{width:100%;padding:9px;font-size:10px}
.party-remove-spacer{display:block}
.party-submit{margin-top:14px}
.party-roster{display:grid;grid-template-columns:1fr;gap:7px;margin:10px 0 0;padding:0;list-style:none}
.party-member{display:grid;grid-template-columns:30px minmax(0,1fr) minmax(0,165px);gap:8px;align-items:center;min-width:0;padding:8px 9px;border-radius:10px;background:#f5eadc}
.party-member-avatar{width:30px;height:30px}
.party-member-main,.party-member-game{display:flex;flex-direction:column;min-width:0}
.party-member-main b,.party-member-game b{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.party-member-main a,.party-member-game span{color:var(--muted);font-size:8.5px;text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.party-member-game span{white-space:normal;line-height:1.3}
.party-member-main a:hover{color:var(--coffee);text-decoration:underline}
.party-member-game{text-align:right}
.party-card-meta{display:flex;align-items:center;gap:8px}
.party-card-badge{padding:3px 7px;border-radius:999px;background:#efe0cf;color:var(--coffee);font-size:8px;font-weight:800;white-space:nowrap}
@media(max-width:800px){.party-hero{flex-direction:column;align-items:stretch}.party-hero-stats{justify-content:flex-start}}
@media(max-width:600px){.party-member{grid-template-columns:30px minmax(0,1fr)}.party-member-game{grid-column:2}.party-members-head{display:none}.party-player{grid-template-columns:1fr 1fr;gap:6px}.party-player .party-remove{grid-column:1/-1;width:100%;height:28px}.party-remove-spacer{display:none}.party-roster{grid-template-columns:1fr}.party-member-game{text-align:left}.party-hero{padding:18px}.party-hero-stats div{flex:1;min-width:0}}

/* Party card: nama dulu, klik untuk buka roster. */
.party-hint{margin:0 0 10px;color:var(--muted);font-size:9px}
.party-card{padding:0;overflow:hidden}
.party-card summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;cursor:pointer;list-style:none}
.party-card summary::-webkit-details-marker{display:none}
.party-card summary::marker{content:""}
.party-card summary:hover{background:rgba(107,59,35,.05)}
.party-card summary:focus-visible{outline:2px solid rgba(184,121,66,.4);outline-offset:-2px}
.party-card-name{min-width:0}
.party-card-name h4{margin:0;font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.party-card-name small{display:block;margin-top:2px;color:var(--muted);font-size:8.5px}
.party-chevron{color:var(--coffee);font-size:12px;line-height:1;transition:transform .2s ease}
.party-card[open] .party-chevron{transform:rotate(180deg)}
.party-card .party-roster{padding:0 12px 12px;margin:0}

/* Kolom server dihapus: form party sekarang empat kolom. */
.party-members-head,.party-player{grid-template-columns:1.15fr 1fr .95fr 30px}
@media(max-width:500px){.party-player{grid-template-columns:1fr 1fr}.party-player .party-remove{grid-column:1/-1;width:100%;height:28px}}
