:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #07111f;
  color: #e5edf7;
  --panel: rgba(18, 32, 54, .88);
  --panel-border: rgba(148, 163, 184, .18);
  --muted: #91a4bd;
  --accent: #43e0c2;
  --accent-strong: #18bfa5;
  --page-glow: rgba(35, 211, 183, .14);
  --page-glow-secondary: rgba(56, 189, 248, .1);
  --input-bg: #0c1a2e;
  --room-bg: #10243b;
  --chat-bg: #081426;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, var(--page-glow), transparent 28rem),
    radial-gradient(circle at 90% 90%, var(--page-glow-secondary), transparent 30rem),
    #07111f;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 34px 34px;
}
main { position: relative; max-width: 1260px; margin: 0 auto; padding: 42px 24px 56px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.site-header h1 { margin-bottom: 26px; }
.theme-toggle { flex: 0 0 auto; color: #dffefa; background: var(--room-bg); border-color: var(--panel-border); font-size: .8rem; }
.theme-toggle:hover { background: var(--panel); }
h1 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 26px; color: #f4fffd; letter-spacing: -.04em; font-size: clamp(2rem, 4vw, 3.2rem); }
h1::before { content: ""; width: 10px; height: 42px; border-radius: 99px; background: linear-gradient(180deg, var(--accent), #66a8ff); box-shadow: 0 0 24px rgba(67,224,194,.45); }
h1 small { color: var(--muted); font-size: .34em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
input, button { border: 1px solid transparent; border-radius: 10px; padding: 11px 13px; font: inherit; transition: border-color .15s, background .15s, transform .15s, box-shadow .15s; }
input { width: 100%; color: #edf6ff; background: var(--input-bg); border-color: var(--panel-border); outline: none; }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(67,224,194,.12); }
button { color: #06231f; background: var(--accent); cursor: pointer; font-weight: 800; }
button:hover { background: #6aefda; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(24,191,165,.18); }
button:disabled { cursor: wait; opacity: .6; transform: none; }
#login { width: min(100%, 820px); margin: 0 auto; padding: 26px; border: 1px solid var(--panel-border); border-radius: 18px; background: var(--panel); box-shadow: 0 22px 70px rgba(0,0,0,.24); }
.quick-entry { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; align-items: center; margin: 0 0 16px; padding: 16px; background: linear-gradient(135deg, rgba(67,224,194,.13), rgba(20,48,72,.5)); border: 1px solid rgba(67,224,194,.3); border-radius: 14px; }
.quick-entry strong { color: #f8fffe; font-size: 1.08rem; }
.quick-entry span { grid-column: 1; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.quick-entry button { grid-column: 2; grid-row: 1 / span 2; min-width: 128px; }
.quick-entry #showOptions { grid-row: 3; grid-column: 1 / -1; justify-self: start; min-width: 0; padding: 6px 9px; color: #dffefa; background: transparent; border-color: var(--panel-border); font-size: .72rem; }
.optional-lobby-control { display: none !important; }
.optional-consent { display: none !important; }
#login.show-options .optional-lobby-control { display: revert !important; }
#login.show-options .optional-consent { display: flex !important; }
.consent-agreement { display: flex !important; margin-top: 0; padding-top: 4px; }
.consent-agreement a { color: var(--accent); font-weight: 800; }
.lobby { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 6px 0 18px; }
.lobby strong { color: #f8fffe; font-size: 1.15rem; }
.lobby span { color: var(--accent); font-size: .85rem; font-weight: 700; text-align: right; }
.lobby p { grid-column: 1 / -1; margin: 0; color: var(--muted); line-height: 1.55; }
#login > input { width: calc(50% - 8px); margin: 0 8px 12px 0; }
.lobby-inputs-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 0 0 14px; width: 100%; box-sizing: border-box; }
.lobby-inputs-grid input { width: 100% !important; margin: 0 !important; box-sizing: border-box; }
@media (max-width: 860px) { .lobby-inputs-grid { grid-template-columns: 1fr; } }
#login > button { width: 100%; }
.capacity-row { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; }
.capacity-row label { color: var(--muted); font-size: .82rem; font-weight: 700; }
#capacity { width: 100px; margin-left: auto; }
.capacity-presets { display: flex; gap: 7px; margin: 0 0 14px; }
.capacity-presets button { min-width: 46px; padding: 8px 10px; color: #dffefa; background: var(--room-bg); border-color: var(--panel-border); font-size: .8rem; }
.capacity-presets button:hover { background: #173653; }
.map-row { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.map-row label { color: var(--muted); font-size: .82rem; font-weight: 700; }
.map-row select { flex: 1; min-width: 0; }
.moderation-map { margin: 0 0 10px; }
.moderation-map button { flex: 0 0 auto; }
.privacy-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 16px 0 0; padding: 12px 16px; color: var(--muted); background: rgba(8, 20, 37, .56); border: 1px solid rgba(67, 224, 194, .2); border-radius: 10px; font-size: .76rem; line-height: 1.5; box-sizing: border-box; }
.privacy-summary strong { color: #f8fffe; white-space: nowrap; }
.privacy-summary span { flex: 1 1 300px; min-width: 0; }
.privacy-summary a, .site-footer a, .back-link { color: var(--accent); font-weight: 800; text-decoration: none; white-space: nowrap; }
.privacy-summary a:hover, .site-footer a:hover, .back-link:hover { text-decoration: underline; }
.consent-panel { margin: 14px 0; padding: 14px; border: 1px solid var(--panel-border); border-radius: 12px; color: var(--muted); background: rgba(8, 20, 37, .42); box-sizing: border-box; }
.consent-panel legend { padding: 0 6px; color: #f8fffe; font-size: .82rem; font-weight: 800; }
.consent-option { display: flex !important; align-items: flex-start; gap: 10px; padding: 8px 0; cursor: pointer; width: 100%; box-sizing: border-box; }
.consent-panel .consent-option + .consent-option { border-top: 1px solid rgba(255, 255, 255, .05); }
.consent-option input { width: 17px; height: 17px; flex: 0 0 17px; margin: 3px 0 0; accent-color: var(--accent); cursor: pointer; }
.consent-option input:disabled { cursor: not-allowed; opacity: .8; }
.consent-option span { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.consent-option strong { color: #e5edf7; font-size: .82rem; line-height: 1.3; }
.consent-option small { color: var(--muted); font-size: .74rem; line-height: 1.4; }
.consent-option > b { color: var(--accent); font-size: .68rem; text-transform: uppercase; margin-left: auto; flex-shrink: 0; padding-top: 2px; letter-spacing: .04em; }
.consent-note { margin: 8px 0 0; color: #8499b1; font-size: .72rem; line-height: 1.5; }
.consent-note a { color: var(--accent); font-weight: 700; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; margin: 20px 0 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.05); color: #68809c; font-size: .76rem; text-align: center; }
.site-footer span { color: #334155; }
.profile-kvkk-row { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 14px; margin-top: 16px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.legal-page main { max-width: 1120px; }
.legal-header { margin-bottom: 22px; }
.legal-header h1 { margin: 12px 0 0; }
.back-link { display: inline-block; font-size: .8rem; }
.draft-badge { padding: 7px 10px; color: #ffe8a3; background: rgba(153, 101, 23, .2); border: 1px solid rgba(250, 204, 21, .28); border-radius: 99px; font-size: .7rem; font-weight: 800; }
.legal-hero { padding: clamp(24px, 5vw, 52px); border: 1px solid rgba(67, 224, 194, .22); border-radius: 22px; background: linear-gradient(135deg, rgba(18, 47, 69, .9), rgba(18, 32, 54, .78)); box-shadow: 0 24px 70px rgba(0,0,0,.2); }
.eyebrow, .section-kicker { color: var(--accent); font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.legal-hero h2 { max-width: 680px; margin: 12px 0 10px; color: #f4fffd; font-size: clamp(2rem, 5vw, 3.7rem); letter-spacing: -.05em; line-height: .98; }
.legal-hero p { max-width: 730px; margin: 0; color: #afc0d2; line-height: 1.7; }
.legal-quick-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.legal-quick-links a { padding: 8px 11px; color: #dffefa; background: rgba(7, 17, 31, .35); border: 1px solid var(--panel-border); border-radius: 8px; font-size: .78rem; font-weight: 800; text-decoration: none; }
.legal-quick-links a:hover { border-color: var(--accent); background: rgba(67,224,194,.1); }
.legal-layout { display: flex; gap: 24px; align-items: flex-start; margin-top: 24px; width: 100%; }
.legal-nav { flex: 0 0 250px; position: sticky; top: 20px; display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--panel-border); border-radius: 14px; background: rgba(18, 32, 54, .75); box-sizing: border-box; }
.legal-nav strong { margin-bottom: 6px; color: #f8fffe; font-size: .84rem; text-transform: uppercase; letter-spacing: .04em; }
.legal-nav a { padding: 6px 8px; color: var(--muted); font-size: .78rem; line-height: 1.35; text-decoration: none; border-radius: 6px; transition: all .15s ease; }
.legal-nav a:hover { color: var(--accent); background: rgba(67, 224, 194, .08); }
.legal-content { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.legal-card { scroll-margin-top: 20px; padding: clamp(20px, 3vw, 30px); border: 1px solid var(--panel-border); border-radius: 16px; background: rgba(18, 32, 54, .78); box-shadow: 0 16px 45px rgba(0,0,0,.14); }
.legal-card h3 { margin: 8px 0 10px; color: #f4fffd; font-size: clamp(1.25rem, 2.4vw, 1.75rem); letter-spacing: -.025em; }
.legal-card p { margin: 0 0 12px; color: #adbed0; line-height: 1.7; font-size: .9rem; }
.legal-card p:last-child { margin-bottom: 0; }
.accent-card { border-color: rgba(67, 224, 194, .28); background: linear-gradient(145deg, rgba(15, 57, 64, .75), rgba(18, 32, 54, .82)); }
.policy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 18px; }
.policy-grid div { display: grid; gap: 4px; padding: 12px; background: rgba(7, 17, 31, .32); border: 1px solid rgba(148,163,184,.13); border-radius: 10px; }
.policy-grid strong { color: #e7f8f5; font-size: .82rem; }
.policy-grid span { color: var(--muted); font-size: .76rem; line-height: 1.45; }
.callout, .contact-placeholder { display: flex; gap: 8px; margin-top: 18px; padding: 12px 14px; color: #c5d7e7; background: rgba(7, 17, 31, .36); border-left: 3px solid var(--accent); border-radius: 7px; font-size: .8rem; line-height: 1.5; }
.callout strong { color: var(--accent); white-space: nowrap; }
.rule-list { display: grid; gap: 8px; margin-top: 16px; }
.rule-list div { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: start; padding: 11px 0; border-top: 1px solid rgba(148,163,184,.12); }
.rule-list b { color: var(--accent); font: 800 .76rem ui-monospace, monospace; }
.rule-list span { color: #bdccdc; font-size: .86rem; line-height: 1.5; }
.muted-note { color: #8297ae !important; font-size: .76rem !important; }
.legal-acceptance { margin-top: 22px; padding: 18px 20px; color: var(--muted); background: rgba(8, 20, 37, .56); border: 1px solid rgba(67, 224, 194, .2); border-radius: 14px; line-height: 1.6; }
.legal-acceptance strong { color: #f8fffe; }
.legal-acceptance p { margin: 8px 0 0; }
.consent-manager { margin-top: 18px; padding: 16px; background: rgba(7, 17, 31, .34); border: 1px solid rgba(67, 224, 194, .22); border-radius: 12px; }
.consent-manager > strong { color: #f8fffe; }
.consent-manager p { margin: 6px 0 10px; font-size: .8rem; }
.consent-manager-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.consent-manager-options .consent-option { padding: 10px; border: 1px solid rgba(148,163,184,.13); border-radius: 9px; background: rgba(8, 20, 37, .35); }
.consent-manager-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.consent-manager-actions button { padding: 8px 11px; font-size: .76rem; }
.secondary-button { color: #dffefa; background: var(--room-bg); border-color: var(--panel-border); }
.admin-page form { display: grid; gap: 8px; max-width: 560px; }
.admin-page form label { color: var(--muted); font-size: .82rem; font-weight: 700; }
.admin-page #status { min-height: 1.5em; color: var(--accent); }
.admin-results { margin-top: 18px; }
.admin-message { padding: 16px 0; border-bottom: 1px solid var(--panel-border); }
.admin-message:last-child { border-bottom: 0; }
.admin-message h4 { margin: 0 0 4px; color: #f4fffd; }
.admin-message small, .admin-message p { color: var(--muted); line-height: 1.55; }
.admin-message p { margin: 8px 0 0; }
.admin-session { color: var(--muted); margin: 8px 0; }
.consent-manager-actions span { color: var(--accent); font-size: .75rem; }
.legal-footer { margin: 24px 0 0; }
@media (max-width: 860px) {
  .privacy-summary { grid-template-columns: 1fr; gap: 4px; }
  .legal-header { align-items: start; }
  .draft-badge { margin-top: 4px; }
  .legal-layout { flex-direction: column; gap: 16px; }
  .legal-nav { flex: 1 1 auto; width: 100%; position: static; flex-direction: row; flex-wrap: wrap; gap: 8px 12px; }
  .legal-nav strong { flex-basis: 100%; }
  .legal-content { width: 100%; }
  .policy-grid { grid-template-columns: 1fr; }
  .consent-manager-options { grid-template-columns: 1fr; }
}
.room-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; max-height: 360px; overflow-y: auto; margin: 0 0 16px; padding: 2px; scrollbar-color: #2b4967 transparent; }
.room-card { display: grid; align-content: center; gap: 5px; min-height: 74px; padding: 12px 14px; color: #dffefa; background: var(--room-bg); border-color: var(--panel-border); text-align: left; }
.room-card:hover { background: #173653; }
.room-card strong { color: var(--accent); font-size: .95rem; overflow-wrap: anywhere; }
.room-card span, .room-empty { color: var(--muted); font-size: .75rem; }
.room-empty { padding: 4px 2px; }
.game-stats { display: grid; gap: 9px; margin: 0 0 16px; padding: 12px 14px; color: var(--muted); background: rgba(8, 20, 37, .42); border: 1px solid var(--panel-border); border-radius: 10px; font-size: .78rem; line-height: 1.45; }
.game-stats strong { color: #f8fffe; font-size: .86rem; }
.game-stats b { color: var(--accent); }
.inventory { display: grid; gap: 4px; margin: 10px 0; padding: 9px 10px; color: var(--muted); background: rgba(8, 20, 37, .5); border: 1px solid var(--panel-border); border-radius: 8px; font-size: .78rem; }
.inventory strong { color: #f8fffe; }
.inventory b { color: var(--accent); }
.inventory small { font-size: .68rem; }
.market-panel { display: grid; gap: 10px; margin: 0 0 16px; padding: 13px 14px; color: var(--muted); background: rgba(8, 20, 37, .42); border: 1px solid var(--panel-border); border-radius: 10px; }
.market-toggle { justify-self: start; padding: 8px 12px; color: #f8fffe; background: linear-gradient(135deg, #244765, #142a42); border: 1px solid rgba(148, 190, 215, .35); border-radius: 8px; font-weight: 800; }
.market-toggle[aria-expanded="true"] { color: #07111f; background: var(--accent); }
.market-heading { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.market-heading div, .market-item { display: grid; gap: 3px; }
.market-heading strong { color: #f8fffe; }
.market-heading small, .market-item small { font-size: .7rem; }
.market-heading b { color: var(--accent); white-space: nowrap; }
.account-panel { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 6px; }
.account-panel input { min-width: 0; }
.account-panel button { padding: 7px 10px; font-size: .74rem; }
.account-panel span { grid-column: 1 / -1; color: var(--accent); font-size: .75rem; min-height: 1em; }
.market-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.market-item { padding: 9px; background: rgba(20, 48, 72, .55); border: 1px solid rgba(92, 160, 190, .2); border-radius: 8px; }
.market-item strong { color: #f8fffe; font-size: .8rem; }
.market-item button { margin-top: 4px; padding: 6px 8px; font-size: .72rem; }
.market-inventory { font-size: .75rem; }
.market-inventory > strong { display: block; margin-bottom: 5px; color: #f8fffe; }
.inventory-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid rgba(148, 190, 215, .14); }
.inventory-row button { padding: 5px 8px; font-size: .68rem; }
.chest-panel { position: relative; display: grid; grid-template-columns: 68px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; overflow: hidden; padding: 13px; background: linear-gradient(120deg, rgba(91, 101, 113, .78), rgba(29, 42, 57, .9)); border: 1px solid rgba(226, 232, 240, .62); border-radius: 12px; box-shadow: inset 0 1px rgba(255,255,255,.2), 0 7px 18px rgba(0,0,0,.18); }
.chest-panel::after { position: absolute; inset: 0; pointer-events: none; content: ''; background: linear-gradient(110deg, transparent 25%, rgba(241, 245, 249, .3) 50%, transparent 75%); transform: translateX(-130%); }
.chest-ready .chest-panel::after { animation: chest-sweep 2.2s ease-in-out infinite; }
.chest-visual { position: relative; width: 64px; height: 54px; filter: drop-shadow(0 7px 8px rgba(0,0,0,.3)); }
.chest-lid, .chest-body { position: absolute; left: 8px; width: 48px; border: 2px solid #4b5563; background: linear-gradient(135deg, #e5e7eb, #64748b 75%); }
.chest-lid { top: 10px; height: 18px; border-radius: 9px 9px 4px 4px; transform: skewX(-8deg); }
.chest-body { top: 25px; height: 25px; border-radius: 3px 3px 8px 8px; }
.chest-lock { position: absolute; z-index: 1; top: 24px; left: 29px; width: 10px; height: 14px; border: 2px solid #f8fafc; border-radius: 3px; background: #94a3b8; }
.chest-glow { position: absolute; top: 1px; left: 22px; width: 20px; height: 12px; border-radius: 50%; background: #e0f2fe; opacity: .25; filter: blur(7px); }
.chest-ready .chest-glow { animation: chest-glow 1.2s ease-in-out infinite; opacity: .9; }
.chest-copy { display: grid; gap: 3px; min-width: 0; }
.chest-copy strong { color: #fde68a; font-size: .86rem; }
.chest-copy small, #chestStatus { color: var(--muted); font-size: .68rem; }
.chest-roll { min-width: 64px; color: #fef3a4; font-size: .92rem; font-weight: 900; text-align: center; }
.chest-roll.rolling { animation: chest-roll .16s linear infinite; }
.chest-panel button { padding: 7px 10px; font-size: .72rem; white-space: nowrap; }
#chestStatus { grid-column: 1 / -1; min-height: 1em; color: var(--accent); }
@keyframes chest-roll { 0%, 100% { transform: translateY(-2px) rotate(-2deg); } 50% { transform: translateY(2px) rotate(2deg); } }
@keyframes chest-glow { 0%, 100% { transform: scale(.8); box-shadow: 0 0 8px 3px #bae6fd; } 50% { transform: scale(1.3); box-shadow: 0 0 22px 9px #f8fafc; } }
@keyframes chest-sweep { 0% { transform: translateX(-130%); } 55%, 100% { transform: translateX(130%); } }
.game-chest-panel { margin: 10px 0; }
.game-chest-panel .chest-panel { grid-template-columns: 48px minmax(0, 1fr) auto; padding: 9px; gap: 8px; }
.game-chest-panel .chest-visual { transform: scale(.75); transform-origin: left center; }
.game-chest-panel .chest-copy strong { font-size: .78rem; }
.game-chest-panel .chest-copy small, .game-chest-panel .chest-status { font-size: .64rem; }
.game-chest-panel .chest-roll { min-width: 48px; font-size: .76rem; }
.game-chest-panel .chest-panel button { padding: 6px 8px; font-size: .68rem; }
@media (max-width: 860px) { .account-panel { grid-template-columns: 1fr 1fr; } .account-panel button { width: 100%; } }
@media (max-width: 480px) { .chest-panel { grid-template-columns: 58px 1fr; } .chest-visual { transform: scale(.88); transform-origin: left center; } .chest-roll { grid-column: 2; } .chest-panel button { grid-column: 1 / -1; } }
@media (max-width: 560px) {
  main { padding: 22px 12px 34px; }
  #login { padding: 16px; border-radius: 14px; }
  .site-header h1 { margin-bottom: 18px; }
  .quick-entry { grid-template-columns: 1fr; }
  .quick-entry span, .quick-entry button { grid-column: 1; }
  .quick-entry button { grid-row: auto; width: 100%; }
  .quick-entry #showOptions { width: auto; }
  .consent-panel { padding: 10px; }
  .consent-note { font-size: .68rem; }
}
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.stats-grid span { display: grid; gap: 1px; padding: 7px 6px; text-align: center; background: rgba(20, 48, 72, .55); border: 1px solid rgba(92, 160, 190, .2); border-radius: 7px; }
.stats-grid b { font-size: 1rem; line-height: 1.1; }
.stats-grid small { color: var(--muted); font-size: .67rem; }
.stats-leaders { display: grid; gap: 2px; }
@media (max-width: 480px) { .stats-leaders { font-size: .72rem; } }
#game { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px 18px; align-items: start; }
.landscape-notice { grid-column: 1 / -1; }
#notice { position: fixed; top: 18px; left: 50%; z-index: 10; max-width: min(520px, calc(100vw - 32px)); padding: 12px 16px; color: #f7fffd; background: rgba(18, 32, 54, .96); border: 1px solid var(--accent); border-radius: 11px; box-shadow: 0 14px 36px rgba(0,0,0,.3); transform: translateX(-50%); font-weight: 800; text-align: center; }
.field-wrap { grid-column: 1; position: relative; min-width: 0; }
canvas { display: block; max-width: 100%; max-height: min(72vh, 620px); width: auto; height: auto; aspect-ratio: 1040 / 620; object-fit: contain; background: #0b6b38; border: 5px solid #263b57; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.32), 0 0 0 1px rgba(67,224,194,.12); }
#networkStats { position: absolute; left: 12px; bottom: 12px; padding: 5px 8px; color: #dffefa; background: rgba(7, 17, 31, .78); border: 1px solid rgba(148, 163, 184, .22); border-radius: 6px; font: 700 11px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; pointer-events: none; user-select: none; }
#touchControls { display: none; grid-column: 1; }
#game[hidden] #touchControls { display: none; }
body[data-theme="warm"] canvas { filter: sepia(.16) saturate(.86) brightness(.94); }
body[data-theme="night"] canvas { filter: brightness(.72) saturate(.72); }
#game > aside { grid-column: 2; grid-row: 1 / span 3; min-width: 0; padding: 16px; border: 1px solid var(--panel-border); border-radius: 16px; background: var(--panel); box-shadow: 0 20px 60px rgba(0,0,0,.22); }
#score { display: block; margin: 0 0 2px; color: #fef3a4; font-size: 2.25rem; letter-spacing: .08em; text-align: center; text-shadow: 0 0 18px rgba(254,243,164,.2); }
.match-meta { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 10px; font-size: .8rem; color: var(--muted); font-weight: 700; }
.match-restart-btn { padding: 3px 8px; font-size: .72rem; border-radius: 6px; background: #0f766e; color: #fff; border: 1px solid rgba(67, 224, 194, .3); cursor: pointer; }
.match-restart-btn:hover { background: #14b8a6; }
.team-selector { display: flex; gap: 6px; margin: 0 0 10px; }
.team-selector button { flex: 1; padding: 6px 4px; font-size: .76rem; font-weight: 700; border-radius: 8px; cursor: pointer; transition: all .15s ease; border: 1px solid transparent; }
.team-btn.team-red { background: rgba(239, 68, 68, .15); color: #fca5a5; border-color: rgba(239, 68, 68, .35); }
.team-btn.team-red:hover, .team-btn.team-red.active { background: #dc2626; color: #fff; border-color: #ef4444; }
.team-btn.team-blue { background: rgba(59, 130, 246, .15); color: #93c5fd; border-color: rgba(59, 130, 246, .35); }
.team-btn.team-blue:hover, .team-btn.team-blue.active { background: #2563eb; color: #fff; border-color: #3b82f6; }
.team-btn.team-spec { background: rgba(148, 163, 184, .12); color: #cbd5e1; border-color: rgba(148, 163, 184, .25); }
.team-btn.team-spec:hover, .team-btn.team-spec.active { background: #475569; color: #fff; border-color: #64748b; }
#status { margin-bottom: 10px; color: var(--muted); font-size: .84rem; text-align: center; }
.players { padding: 9px 11px; background: rgba(8, 20, 37, .75); border: 1px solid var(--panel-border); border-radius: 10px; font-size: .8rem; }
.lobby-section { display: flex; flex-direction: column; gap: 6px; }
.lobby-section-header { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-bottom: 5px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.lobby-title-wrap { display: flex; align-items: center; gap: 6px; }
.lobby-title { font-weight: 700; color: #f1f5f9; font-size: .82rem; }
.lobby-count-badge { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 999px; font-size: .7rem; font-weight: 700; color: var(--accent); background: rgba(67, 224, 194, .12); border: 1px solid rgba(67, 224, 194, .25); }
.lobby-team-summary { display: flex; align-items: center; gap: 4px; }
.team-summary-pill { font-size: .68rem; font-weight: 700; padding: 1px 5px; border-radius: 5px; background: rgba(255, 255, 255, .06); }
.pill-red { color: #fca5a5; }
.pill-blue { color: #93c5fd; }
.pill-spec { color: #94a3b8; }
.lobby-player-list { display: flex; flex-direction: column; gap: 3px; max-height: 115px; overflow-y: auto; padding-right: 2px; scrollbar-width: thin; scrollbar-color: #2b4967 transparent; }
.lobby-player-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 3px 6px; border-radius: 6px; background: rgba(15, 23, 42, .45); transition: background .12s ease; }
.lobby-player-row:hover { background: rgba(15, 23, 42, .8); }
.lobby-player-row.is-me { background: rgba(45, 212, 191, .09); border: 1px solid rgba(45, 212, 191, .22); }
.player-identity { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.team-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.dot-red { background: #ef4444; box-shadow: 0 0 5px rgba(239, 68, 68, .6); }
.dot-blue { background: #3b82f6; box-shadow: 0 0 5px rgba(59, 130, 246, .6); }
.dot-spec { background: #94a3b8; }
.player-row-name { color: #e2e8f0; font-weight: 600; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-badges { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.player-badge { font-size: .66rem; font-weight: 700; padding: 1px 5px; border-radius: 4px; white-space: nowrap; }
.badge-host { color: #fde047; background: rgba(234, 179, 8, .16); border: 1px solid rgba(234, 179, 8, .35); }
.badge-moderator { color: #5eead4; background: rgba(20, 184, 166, .16); border: 1px solid rgba(20, 184, 166, .35); }
.badge-player { color: #94a3b8; background: rgba(148, 163, 184, .1); }
.badge-afk { color: #f87171; background: rgba(239, 68, 68, .18); border: 1px solid rgba(239, 68, 68, .4); animation: afk-pulse 1.8s infinite ease-in-out; }
@keyframes afk-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .65; } }
.badge-me { color: #38bdf8; background: rgba(56, 189, 248, .15); border: 1px solid rgba(56, 189, 248, .3); }
.lobby-empty-text { color: var(--muted); font-size: .75rem; text-align: center; padding: 8px 0; }
#chat { height: 260px; min-height: 160px; overflow: auto; margin: 10px 0; padding: 11px; background: var(--chat-bg); border: 1px solid var(--panel-border); border-radius: 10px; scrollbar-color: #2b4967 transparent; }
.chatline { margin: 6px 0; color: #d8e4f2; font-size: .86rem; overflow-wrap: anywhere; }
.chatline:first-letter { color: var(--accent); }
#chatForm { display: flex; gap: 6px; }
#chatForm input { min-width: 0; }
#chatForm button { flex: 0 0 auto; padding-inline: 15px; }
.leave-room { width: 100%; margin: 0 0 10px; color: #d8e4f2; background: #1b304b; border-color: var(--panel-border); font-size: .82rem; }
.leave-room:hover { background: #274766; }
#game > aside > p { margin: 14px 0 8px; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.mod { display: grid; gap: 7px; margin: 6px 0; padding: 6px 8px; border-radius: 8px; background: rgba(8, 20, 37, .5); }
.mod > .mod-identity { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 3px 0; overflow: hidden; color: #f4fffd; background: transparent; border: 0; font-size: .82rem; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.mod-identity::after { content: '▸'; flex: 0 0 auto; margin-left: 8px; color: var(--muted); font-size: .72rem; transition: transform .15s ease; }
.mod.expanded .mod-identity::after { transform: rotate(90deg); }
.mod.collapsed > .mod-actions { display: none !important; }
.mod-actions[hidden] { display: none !important; }
.mod-actions { display: flex; gap: 5px; flex-wrap: wrap; }
.mod button { padding: 5px 8px; border-radius: 7px; font-size: .7rem; }
.mod button[data-action="kick"], .mod button[data-action="ban"] { color: #fff; background: #e06b7d; }
.mod button[data-action="kick"]:hover, .mod button[data-action="ban"]:hover { background: #f08291; }
body[data-theme="warm"] {
  --panel: rgba(58, 39, 32, .9);
  --panel-border: rgba(245, 190, 150, .22);
  --muted: #cbb6a5;
  --accent: #f0b27a;
  --accent-strong: #d98556;
  --page-glow: rgba(236, 146, 91, .13);
  --page-glow-secondary: rgba(194, 112, 74, .08);
  --input-bg: #2a2020;
  --room-bg: #382a28;
  --chat-bg: #21191b;
  color-scheme: dark;
}
body[data-theme="night"] {
  --panel: rgba(8, 15, 27, .94);
  --panel-border: rgba(120, 145, 175, .16);
  --muted: #7f91a8;
  --accent: #8eb8d8;
  --accent-strong: #668eae;
  --page-glow: rgba(34, 76, 112, .08);
  --page-glow-secondary: rgba(29, 49, 78, .06);
  --input-bg: #080f1c;
  --room-bg: #0c1726;
  --chat-bg: #060c16;
  color-scheme: dark;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media (max-width: 900px) {
  main { padding: 28px 14px 40px; }
  #game { grid-template-columns: 1fr; }
  .field-wrap { grid-column: 1; grid-row: auto; }
  #touchControls { grid-column: 1; grid-row: auto; }
  #game > aside { grid-column: 1; grid-row: auto; display: block; }
  .moderation-wrap { grid-column: 1; grid-row: auto; }
  #chat { height: 220px; }
}
@media (pointer: coarse), (max-width: 900px) {
  #touchControls { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 12px 0; padding-bottom: env(safe-area-inset-bottom); }
  .touch-pad { display: grid; gap: 4px; }
  .touch-pad > button, .touch-pad div { display: flex; justify-content: center; gap: 4px; }
  .touch-pad button, .touch-kick { min-width: 48px; min-height: 44px; padding: 8px; color: #e5edf7; background: rgba(18, 32, 54, .9); border-color: var(--panel-border); touch-action: none; user-select: none; }
  .touch-kick { min-width: 82px; color: #06231f; background: var(--accent); }
  #chat { height: min(32vh, 260px); min-height: 150px; }
  #chatForm { position: sticky; bottom: 0; padding: 6px 0 max(6px, env(safe-area-inset-bottom)); background: var(--panel); }
  #chatForm input { min-height: 46px; font-size: 16px; }
  #chatForm button { min-width: 82px; min-height: 46px; }
}
@media (max-width: 520px) {
  .site-header { align-items: flex-start; }
  .theme-toggle { padding: 9px 10px; }
  h1 { margin-bottom: 18px; }
  #login { padding: 18px; }
  #login > input { width: 100%; margin-right: 0; }
  #game > aside { display: block; }
}

/* Hızlı Reaksiyon ve Mobil İyileştirmeleri */
.quick-chat-bar { display: flex; gap: 6px; margin: 6px 0 10px; overflow-x: auto; padding-bottom: 2px; }
.quick-chat-bar button { flex: 1; min-width: 60px; padding: 6px 4px; font-size: .78rem; font-weight: 700; color: #dffefa; background: rgba(18, 32, 54, .85); border: 1px solid var(--panel-border); border-radius: 8px; cursor: pointer; transition: background .15s ease; touch-action: manipulation; user-select: none; }
.quick-chat-bar button:active { background: var(--accent); color: #07111f; }
.landscape-notice { display: none; }
@media (orientation: portrait) and (max-width: 768px) {
  .landscape-notice { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; padding: 8px 12px; background: rgba(15, 118, 110, .25); border: 1px solid var(--accent); border-radius: 10px; color: #dffefa; font-size: .8rem; font-weight: 600; }
  .landscape-notice button { background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer; padding: 0 4px; }
}

/* Ses Mute & Pause Butonları */
.name-avatar-row { display: flex; gap: 8px; width: 100%; }
.name-avatar-row #name { flex: 1; min-width: 0; }
.name-avatar-row #avatar { width: 68px; text-align: center; font-weight: 800; font-family: ui-monospace, monospace; }
.sound-toggle-btn { background: none; border: 1px solid var(--panel-border); border-radius: 6px; padding: 2px 7px; font-size: .85rem; cursor: pointer; color: #fff; transition: background .15s ease; }
.sound-toggle-btn:hover { background: rgba(255,255,255,.1); }
.match-pause-btn { padding: 3px 8px; font-size: .72rem; border-radius: 6px; background: #eab308; color: #000; font-weight: 700; border: 1px solid rgba(234, 179, 8, .4); cursor: pointer; }
.match-pause-btn:hover { background: #facc15; }

/* Sanal Joystick (Virtual Thumbstick) */
.joystick-zone { position: relative; width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; touch-action: none; user-select: none; }
.joystick-base { width: 100px; height: 100px; border-radius: 50%; background: rgba(18, 32, 54, 0.7); border: 2px solid rgba(67, 224, 194, 0.4); box-shadow: 0 0 16px rgba(0,0,0,0.4); position: relative; display: flex; align-items: center; justify-content: center; }
.joystick-knob { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(67, 224, 194, 0.6); position: absolute; pointer-events: none; transform: translate(0px, 0px); transition: transform 0.05s ease-out; }

/* Moderasyon Alt Panel Düzeni */
.moderation-wrap { grid-column: 1; margin-top: 0; padding: 12px 16px; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); }
.controls-hint { margin: 0 0 8px; color: var(--muted); font-size: .8rem; font-weight: 600; }
#moderation { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
#moderation .moderation-map { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 480px; margin-bottom: 2px; }
#moderation .mod { flex: 1 1 200px; margin: 0; }

/* Ses Ayarları Butonları ve Modalı */
.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.sound-toggle-btn { display: inline-flex; align-items: center; gap: 5px; background: var(--room-bg); border: 1px solid var(--panel-border); border-radius: 8px; padding: 6px 12px; font-size: .8rem; font-weight: 700; cursor: pointer; color: #dffefa; transition: all .15s ease; user-select: none; }
.sound-toggle-btn:hover { background: var(--panel); color: #fff; }
.match-meta .sound-toggle-btn { padding: 3px 8px; font-size: .72rem; border-radius: 6px; background: rgba(20, 48, 72, .6); }

.sound-modal-backdrop { position: fixed; inset: 0; background: rgba(3, 10, 20, 0.68); backdrop-filter: blur(4px); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.sound-modal-backdrop[hidden] { display: none !important; }
.sound-modal-content { width: min(100%, 390px); background: var(--panel); border: 1px solid var(--panel-border); border-radius: 16px; padding: 20px 22px; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(67, 224, 194, 0.15); animation: soundModalIn 0.18s ease-out; }
@keyframes soundModalIn { from { opacity: 0; transform: scale(0.95) translateY(-8px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.sound-modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.sound-modal-header h3 { margin: 0; font-size: 1.05rem; color: #f8fffe; display: flex; align-items: center; gap: 8px; }
.sound-modal-close { background: transparent; border: none; color: var(--muted); font-size: 1.3rem; line-height: 1; padding: 4px 8px; cursor: pointer; border-radius: 6px; transition: all 0.15s ease; }
.sound-modal-close:hover { color: #fff; background: rgba(255, 255, 255, 0.1); transform: none; }
.sound-group { margin-bottom: 14px; padding: 12px 14px; background: rgba(8, 20, 37, 0.45); border: 1px solid var(--panel-border); border-radius: 12px; }
.sound-group-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sound-group-header strong { font-size: 0.88rem; color: #dffefa; }
.sound-toggle-switch { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 0.78rem; color: var(--muted); user-select: none; }
.sound-toggle-switch input { accent-color: var(--accent); width: 16px; height: 16px; cursor: pointer; margin: 0; }
.sound-slider-row { display: flex; align-items: center; gap: 12px; }
.sound-slider-row input[type="range"] { flex: 1; accent-color: var(--accent); cursor: pointer; }
.sound-volume-label { font-family: ui-monospace, monospace; font-size: 0.82rem; font-weight: 700; color: var(--accent); min-width: 38px; text-align: right; }
.sound-test-btn { padding: 4px 10px; font-size: 0.74rem; font-weight: 700; color: #dffefa; background: var(--room-bg); border: 1px solid var(--panel-border); border-radius: 6px; cursor: pointer; transition: all 0.15s ease; user-select: none; }
.sound-test-btn:hover { background: #173653; color: #fff; transform: none; }
.sound-modal-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.sound-modal-footer button { padding: 6px 14px; font-size: 0.8rem; }


/* Maç Kuralları Hızlı Ayar Çubuğu */
.moderation-rules { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: 6px; padding: 4px 10px; background: rgba(10, 24, 44, 0.45); border: 1px solid var(--panel-border); border-radius: 8px; }
.moderation-rules label { font-size: .76rem; color: var(--muted); font-weight: 700; }
.moderation-rules select { padding: 4px 8px; font-size: .78rem; font-weight: 600; border-radius: 6px; background: var(--room-bg); border: 1px solid var(--panel-border); color: #fff; cursor: pointer; }
.moderation-rules select:hover { border-color: var(--accent); }
.moderation-rules button { padding: 4px 10px; font-size: .78rem; font-weight: 700; border-radius: 6px; background: var(--accent); color: #06111e; border: none; cursor: pointer; transition: all .15s ease; user-select: none; }
.moderation-rules button:hover { background: #66ebd4; box-shadow: 0 0 10px rgba(67, 224, 194, 0.35); }

/* Maç Sonu İstatistikleri Modalı */
.match-summary-backdrop { position: fixed; inset: 0; background: rgba(3, 10, 20, 0.78); backdrop-filter: blur(6px); z-index: 1001; display: flex; align-items: center; justify-content: center; padding: 16px; }
.match-summary-backdrop[hidden] { display: none !important; }
.match-summary-content { width: min(100%, 540px); max-height: 90vh; display: flex; flex-direction: column; background: var(--panel); border: 1px solid rgba(67, 224, 194, 0.3); border-radius: 18px; padding: 22px 24px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65), 0 0 30px rgba(67, 224, 194, 0.15); animation: soundModalIn 0.2s ease-out; }
.summary-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.summary-header h3 { margin: 0; font-size: 1.15rem; color: #fef3a4; letter-spacing: 0.05em; }
.summary-hero { text-align: center; padding: 14px 16px; background: rgba(7, 18, 33, 0.6); border: 1px solid var(--panel-border); border-radius: 14px; margin-bottom: 14px; }
.summary-winner-text { font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; }
.winner-red { color: #f87171; text-shadow: 0 0 12px rgba(248, 113, 113, 0.35); }
.winner-blue { color: #60a5fa; text-shadow: 0 0 12px rgba(96, 165, 250, 0.35); }
.winner-draw { color: #fef3a4; text-shadow: 0 0 12px rgba(254, 243, 164, 0.35); }
.summary-score-hero { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 4px 0 6px; }
.summary-score-num { font-size: 2.5rem; font-weight: 900; letter-spacing: 0.08em; color: #fff; font-family: ui-monospace, monospace; }
.summary-team-pill { padding: 4px 12px; border-radius: 999px; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.04em; }
.summary-team-pill.team-red { background: rgba(248, 113, 113, 0.2); color: #fca5a5; border: 1px solid rgba(248, 113, 113, 0.4); }
.summary-team-pill.team-blue { background: rgba(96, 165, 250, 0.2); color: #93c5fd; border: 1px solid rgba(96, 165, 250, 0.4); }
.summary-meta-text { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.summary-mvp-badge { display: inline-block; margin-top: 10px; padding: 5px 14px; background: linear-gradient(135deg, rgba(234, 179, 8, 0.25), rgba(245, 158, 11, 0.15)); border: 1px solid rgba(234, 179, 8, 0.5); border-radius: 999px; color: #fde047; font-size: 0.82rem; font-weight: 800; }
.summary-stats-wrap { flex: 1; min-height: 0; margin-bottom: 14px; }
.summary-stats-wrap h4 { margin: 0 0 8px; font-size: 0.88rem; color: #dffefa; font-weight: 700; }
.summary-table-scroll { max-height: 200px; overflow-y: auto; border: 1px solid var(--panel-border); border-radius: 10px; background: rgba(6, 14, 25, 0.4); }
.summary-stats-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; text-align: left; }
.summary-stats-table th { position: sticky; top: 0; background: #0e2035; padding: 7px 10px; color: var(--muted); font-weight: 700; font-size: 0.74rem; text-transform: uppercase; border-bottom: 1px solid var(--panel-border); }
.summary-stats-table td { padding: 7px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); color: #d8e4f2; }
.summary-stats-table tr:last-child td { border-bottom: none; }
.summary-stats-table tr.is-me { background: rgba(67, 224, 194, 0.08); }
.stat-name-cell strong { color: #fff; }
.me-tag { color: var(--accent); font-weight: 700; margin-left: 4px; }
.mvp-star { margin-left: 4px; font-size: 0.85rem; }
.stat-team-cell { white-space: nowrap; font-size: 0.78rem; }
.highlight-stat { color: #fde047 !important; font-weight: 800; }
.own-goal-stat { color: #f87171 !important; font-weight: 700; }
.summary-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.summary-btn-action { padding: 6px 14px; font-size: 0.8rem; }
.summary-btn-close { padding: 6px 14px; font-size: 0.8rem; background: transparent; border: 1px solid var(--panel-border); color: var(--muted); border-radius: 8px; cursor: pointer; transition: all 0.15s ease; }
.summary-btn-close:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }


/* Gelişmiş Sohbet ve Güvenlik / Sahte Mesaj Koruması */
.chatline { margin: 6px 0; color: #d8e4f2; font-size: .86rem; overflow-wrap: anywhere; line-height: 1.38; }
.chatline-server { color: #fef08a; background: rgba(234, 179, 8, 0.08); padding: 4px 8px; border-radius: 6px; border-left: 3px solid #eab308; }
.chat-server-badge { font-weight: 800; font-size: 0.7rem; color: #000; background: #eab308; padding: 2px 5px; border-radius: 4px; margin-right: 5px; letter-spacing: 0.03em; user-select: none; }
.chat-server-text { color: #fef08a; font-weight: 600; font-size: 0.84rem; }
.chatline-player { color: #e2e8f0; }
.chat-sender { font-weight: 700; }
.chat-sender.chat-team-red { color: #f87171; }
.chat-sender.chat-team-blue { color: #60a5fa; }
.chat-sender.chat-team-spec { color: #94a3b8; }
.chat-sep { color: rgba(255, 255, 255, 0.4); margin-right: 2px; }
.chat-body { color: #f1f5f9; }

/* --- Hesap, Sıralama ve Şifreli Oda Stilleri --- */
.auth-modal-content, .leaderboard-modal-content {
  width: min(100%, 520px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid rgba(67, 224, 194, 0.35);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7), 0 0 30px rgba(67, 224, 194, 0.15);
  color: var(--text);
  overflow-y: auto;
}
.auth-nav-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
  margin-bottom: 18px;
}
.auth-tab-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}
.auth-tab-btn:hover {
  background: rgba(67, 224, 194, 0.1);
  color: #43e0c2;
}
.auth-tab-btn.active {
  background: #43e0c2;
  color: #07111f;
  border-color: #43e0c2;
}
.auth-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.auth-form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
}
.auth-form-group input {
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: white;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.auth-form-group input:focus {
  border-color: #43e0c2;
  box-shadow: 0 0 0 2px rgba(67, 224, 194, 0.2);
}
.auth-form-hint {
  font-size: 0.78rem;
  color: #94a3b8;
}
.auth-submit-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 8px;
}
.auth-submit-btn:hover {
  opacity: 0.92;
}
.badge-verified {
  background: #10b981;
  color: white;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-block;
  vertical-align: middle;
}
.badge-unverified {
  background: #f59e0b;
  color: #000;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-block;
  vertical-align: middle;
}
.user-profile-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.profile-stat-box {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}
.profile-stat-box span {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
}
.profile-stat-box strong {
  display: block;
  font-size: 1.25rem;
  color: #43e0c2;
  margin-top: 2px;
}
.room-locked-indicator {
  color: #facc15;
  margin-right: 4px;
  font-weight: bold;
}
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 0.88rem;
}
.leaderboard-table th {
  background: rgba(15, 23, 42, 0.7);
  color: #94a3b8;
  font-weight: 700;
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.leaderboard-table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.rank-gold { color: #fbbf24; font-weight: 900; }
.rank-silver { color: #e2e8f0; font-weight: 900; }
.rank-bronze { color: #d97706; font-weight: 900; }
.danger-btn {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.danger-btn:hover {
  background: #ef4444;
  color: white;
}


/* --- Founder / Kurucu & Admin Panel --- */
.admin-badge-btn {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.25), rgba(202, 138, 4, 0.12)) !important;
  border: 1px solid #eab308 !important;
  color: #fef08a !important;
  font-weight: 800;
  box-shadow: 0 0 14px rgba(234, 179, 8, 0.25);
  animation: adminGlow 3s ease-in-out infinite alternate;
}
@keyframes adminGlow {
  0% { box-shadow: 0 0 8px rgba(234, 179, 8, 0.2); }
  100% { box-shadow: 0 0 18px rgba(234, 179, 8, 0.5); }
}
.admin-modal-content {
  background: linear-gradient(145deg, #0b1526, #070e1a);
  border: 1px solid rgba(234, 179, 8, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(234, 179, 8, 0.1);
  border-radius: 18px;
  width: 94%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  color: #e2e8f0;
}
.admin-modal-header {
  border-bottom: 1px solid rgba(234, 179, 8, 0.2);
  padding-bottom: 14px;
  margin-bottom: 18px;
}
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
@media (max-width: 680px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.admin-stat-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
}
.admin-stat-label {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.admin-stat-val {
  font-size: 1.45rem;
  font-weight: 900;
  color: #43e0c2;
}
.admin-grant-panel {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(234, 179, 8, 0.2);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 22px;
}
.admin-grant-panel h4 {
  margin: 0 0 6px;
  color: #fef08a;
  font-size: 1.05rem;
}
.admin-hint-text {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 0 0 14px;
  line-height: 1.45;
}
.admin-grant-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.admin-grant-form input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: white;
  font-size: 0.9rem;
}
.admin-presets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-preset-btn {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.admin-preset-btn:hover {
  background: rgba(234, 179, 8, 0.2);
  border-color: #eab308;
  color: #fef08a;
}
.admin-preset-btn.active {
  background: #eab308;
  color: #07111f;
  font-weight: 800;
  border-color: #facc15;
}
.admin-custom-min-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.admin-custom-min-row label {
  font-size: 0.82rem;
  color: #94a3b8;
}
.admin-custom-min-row input {
  width: 130px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: white;
  font-size: 0.85rem;
}
.admin-grant-btn {
  background: linear-gradient(135deg, #eab308, #ca8a04);
  color: #07111f;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 0.15s;
}
.admin-grant-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}
.admin-status-msg {
  font-size: 0.82rem;
  min-height: 1.2em;
  font-weight: 700;
}
.admin-status-msg.success { color: #34d399; }
.admin-status-msg.error { color: #f87171; }

.admin-users-panel {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
}
.admin-users-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-users-header h4 {
  margin: 0;
  color: #f8fafc;
  font-size: 1rem;
}
.admin-users-header input {
  width: 200px;
  padding: 6px 12px;
  font-size: 0.82rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  color: white;
}
.admin-table-scroll {
  overflow-x: auto;
}
.admin-users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.admin-users-table th {
  background: rgba(15, 23, 42, 0.8);
  color: #94a3b8;
  font-weight: 700;
  padding: 9px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.admin-users-table td {
  padding: 9px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.admin-action-btn-sm {
  padding: 4px 8px;
  font-size: 0.72rem;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  font-weight: 700;
  margin-right: 4px;
}
.admin-btn-add-vip {
  background: rgba(234, 179, 8, 0.15);
  border-color: #eab308;
  color: #fef08a;
}
.admin-btn-add-vip:hover {
  background: #eab308;
  color: #07111f;
}
.admin-btn-revoke-vip {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #fca5a5;
}
.admin-btn-revoke-vip:hover {
  background: #ef4444;
  color: white;
}

.admin-btn-kick {
  background: rgba(245, 158, 11, 0.18);
  border-color: #f59e0b;
  color: #fde68a;
}
.admin-btn-kick:hover {
  background: #f59e0b;
  color: #0f172a;
}

.admin-btn-ban {
  background: rgba(220, 38, 38, 0.2);
  border-color: #dc2626;
  color: #fca5a5;
}
.admin-btn-ban:hover {
  background: #dc2626;
  color: #ffffff;
}

.admin-btn-unban {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #6ee7b7;
}
.admin-btn-unban:hover {
  background: #10b981;
  color: #ffffff;
}

.admin-status-online {
  color: #34d399;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.admin-status-offline {
  color: #64748b;
  font-size: 0.78rem;
}
.admin-ban-badge {
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-block;
}
.admin-clean-badge {
  color: #94a3b8;
  font-size: 0.75rem;
}
.admin-host-pill {
  background: rgba(234, 179, 8, 0.25);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.4);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.68rem;
  font-weight: 700;
  margin-left: 4px;
}

/* VIP Oda ve Rozet Stilleri */
.vip-room-toggle-row {
  margin: 10px 0;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.12), rgba(15, 23, 42, 0.5));
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.vip-room-toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #fef08a;
  font-weight: 700;
  font-size: 0.88rem;
}
.vip-room-toggle-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #eab308;
  cursor: pointer;
}
.vip-room-hint {
  font-size: 0.74rem;
  color: #94a3b8;
}
.room-card-vip {
  border-color: rgba(234, 179, 8, 0.45) !important;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.1), rgba(16, 36, 59, 0.9)) !important;
  box-shadow: 0 4px 16px rgba(234, 179, 8, 0.1);
}
.vip-room-badge {
  display: inline-block;
  padding: 2px 6px;
  background: linear-gradient(135deg, #eab308, #ca8a04);
  color: #07111f;
  font-weight: 900;
  font-size: 0.68rem;
  border-radius: 4px;
  margin-right: 4px;
  letter-spacing: 0.04em;
}
.badge-vip {
  background: rgba(234, 179, 8, 0.2) !important;
  color: #fef08a !important;
  border: 1px solid rgba(234, 179, 8, 0.5) !important;
  font-weight: 800;
}
.vip-crown-badge {
  background: linear-gradient(135deg, #eab308, #ca8a04);
  color: #07111f;
  font-weight: 900;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 99px;
  margin-left: 6px;
}
.founder-badge {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: white;
  font-weight: 900;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 99px;
  margin-left: 6px;
}
