#lan-ui { font: 15px/1.55 "Segoe UI","Microsoft JhengHei",sans-serif; color: #183c3e; text-align: left; --ink: #194746; --edge: #cbd7c9; --cream: #fffdf3; }
#lan-ui [hidden] {display:none!important}
#lan-ui * {box-sizing:border-box}
#lan-ui button, #lan-ui select, #lan-ui input { font:inherit; color:inherit; border:1px solid var(--edge); border-radius:9px; padding:.36em .75em; background:#fff; }
#lan-ui button {cursor:pointer; font-weight:600; touch-action:manipulation}
#lan-ui button:disabled {opacity:.55;cursor:default}
#lan-ui button:enabled:hover {background:#e3eee2;border-color:#6da292}
#lan-ui :focus-visible {outline:3px solid #e9a537;outline-offset:2px}
#lan-ui .lan-panel {position:fixed;z-index:92;right:max(12px,env(safe-area-inset-right));top:max(10px,env(safe-area-inset-top));display:flex;flex-direction:column;width:min(430px,calc(100vw - 24px));max-height:calc(100dvh - 24px);border:2px solid var(--ink);border-radius:16px;overflow:hidden;box-shadow:0 8px 38px #102c3c55;background:var(--cream)}
#lan-ui header {display:flex;align-items:center;gap:.7em;padding:.8em 1em;background:var(--ink);color:#fffce8}
#lan-ui h2, #lan-ui h3, #lan-ui p {margin:0}
#lan-ui h2 {font-size:1.25em;letter-spacing:.06em}
#lan-ui small {flex:1;overflow-wrap:anywhere}
#lan-ui header button {background:#285e5b;color:#fffce8;border-color:#77a6a0}
#lan-ui nav {display:grid;grid-template-columns:repeat(4,1fr);gap:2px;background:#e1e9dd;padding:4px}
#lan-ui nav button {border:0;padding:.6em .1em;background:transparent;font-size:.92em}
#lan-ui nav [aria-current=page], #lan-ui [aria-pressed=true] {background:#f5d17c;color:#483818}
#lan-ui .lan-body {overflow:auto;overscroll-behavior:contain;padding:12px 15px 15px;min-height:6em;scrollbar-width:thin;touch-action:pan-y}
#lan-ui .lan-body > * + * {margin-top:.7em}
#lan-ui h3, #lan-ui legend {font-weight:700;color:#255c55;font-size:1.02em}
#lan-ui .lan-notice:not(:empty), #lan-ui .social-feedback:not(:empty) {padding:.45em .8em;background:#f8edc9;color:#5b471c}
#lan-ui .lan-body section, #lan-ui fieldset {border:1px solid var(--edge);border-radius:10px;padding:10px 12px;min-width:0;margin-inline:0}
#lan-ui .lan-body section p {margin:.45em 0}
#lan-ui .lan-body section button {margin:3px 5px 3px 0}
#lan-ui .online-row, #lan-ui form {display:flex;flex-wrap:wrap;gap:6px;align-items:center}
#lan-ui .online-row span {flex:1 1 40%}
#lan-ui form input {flex:1 1 9em;min-width:0}
#lan-ui label {display:inline-flex;gap:6px;align-items:center;max-width:100%;flex-wrap:wrap}
#lan-ui fieldset label {margin:4px 9px 4px 0}
#lan-ui select {max-width:100%}
#lan-ui input[type=number] {max-width:7.5em}
#lan-ui .lan-chat {max-height:10em;min-height:2.4em;overflow:auto;background:#eef3e8;border-radius:9px;padding:.4em .7em;overflow-wrap:anywhere}
#lan-ui .lan-chat p {margin:.15em 0}
#lan-ui progress {accent-color:#458976;height:9px}
@media(max-height:480px) {#lan-ui {font-size:13px} #lan-ui .lan-panel {top:4px;max-height:calc(100dvh - 8px)} #lan-ui header {padding:.3em .8em}}

#lan-ui {font-family:"Segoe UI","Microsoft JhengHei","PingFang TC",sans-serif}
#lan-ui .lan-panel {border:1px solid #547e74;background:#fffdf6;box-shadow:inset 0 1px 0 #fff,0 3px 0 #45665d,0 12px 36px #173c3e40}
#lan-ui header {background:linear-gradient(145deg,#377772,#245553);border-bottom:2px solid #f3c974}
#lan-ui header button {color:#fff;background:#376f69}
#lan-ui header button:hover {color:#183d3a}
#lan-ui nav {background:#e9f0e6;border-bottom:1px solid #c7d7c8}
#lan-ui nav [aria-current=page],#lan-ui .online-row [aria-pressed=true] {color:#533a21;background:#ffe1a1;box-shadow:inset 0 -2px 0 #e2b35f}
#lan-ui .lan-body button {box-shadow:inset 0 -1px 0 #d8e0cf}
#lan-ui .lan-body h3 {font-weight:700}
#lan-ui .lan-body fieldset,#lan-ui .lan-body section {background:#fffef9}
#lan-ui .lan-roster p {margin:.24em 0}

#lan-ui .lan-chat {color:#eef4ff;background:linear-gradient(115deg,#243956,#304568);border:2px solid #b4c7df;border-radius:5px;box-shadow:inset 0 0 0 1px #657991;}
#lan-ui .lan-chat b {color:#ffe3a8;}
#lan-chat-history {border:2px solid #b4c7df;border-radius:5px;background:#243956;}
#lan-ui #lan-chat-history .lan-chat {max-height:none;min-height:0;border:none;border-radius:0;box-shadow:none;}
#lan-ui #lan-chat-history + form {padding:5px;border:1px solid #8095b0;border-radius:5px;background:linear-gradient(#eff4fb,#c3d0e0);}
#lan-ui #lan-chat-history + form input {color:#203552;background:#fffefa;border:1px solid #8398b4;border-radius:3px;}
#lan-ui #lan-chat-history + form button {color:white;background:linear-gradient(#688fd0,#3f64a3);border-color:#405a83;border-radius:4px;}
#lan-ui .lan-battle-stage {width:100%;height:auto;display:block;max-height:128px;border-radius:6px;background:radial-gradient(ellipse at 45% 30%,#eef4dd,transparent 54%),linear-gradient(#c1e1e0,#e4edd3 64%,#c4d6b2 65%,#dce5c9);border:1px solid #91aaa2;}
#lan-ui .lan-body canvas {position:static;inset:auto;pointer-events:none;touch-action:auto;image-rendering:auto;}
#lan-ui .lan-move-icon {display:inline-block;width:22px;height:22px;vertical-align:middle;margin-right:.35em;}
