:root { color-scheme: light; --ink: #243e39; --paper: #faf8e6; --green: #28694f; --line: #526b59; }
body { background: #ced7b5 !important; color: var(--ink); font-family: "Courier New", monospace; }
button, input, textarea, select { font: inherit; }
.emerurd-home { max-width: 1120px; margin: auto; padding: 24px; box-sizing: border-box; }
.emerurd-title { text-align: center; position: relative; padding: 28px 16px 40px; }
.emerurd-kicker { letter-spacing: .22em; font-size: 12px; }
.emerurd-title h1 { color: #246448; font-size: clamp(40px, 8vw, 76px); letter-spacing: .08em; margin: 8px 0; text-shadow: 3px 3px #f8efba, 5px 5px #647955; }
.emerurd-title p { margin: 12px 0; }
.emerurd-connection { display: inline-block; border: 2px solid var(--line); padding: 5px 10px; background: #eee6cd; font-size: 12px; }
.emerurd-connection.online { background: #e0eed1; }
.emerurd-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.emerurd-card { background: var(--paper); border: 3px solid var(--line); outline: 2px solid #e5e6bf; box-shadow: 4px 4px #9aa984; padding: 20px; margin: 0 0 24px; border-radius: 2px; }
.emerurd-card h2 { margin: -20px -20px 18px; padding: 12px 18px; background: #e0e6c9; border-bottom: 2px solid var(--line); font-size: 19px; }
.emerurd-card h2 span { display: block; font-weight: normal; font-size: 13px; margin-top: 5px; }
.emerurd-card p { font-size: 14px; line-height: 1.65; }
.emerurd-card label { display: block; font-size: 14px; font-weight: bold; }
.emerurd-card input, .emerurd-card textarea { display: block; box-sizing: border-box; width: 100%; margin: 8px 0 14px; padding: 12px; border: 2px solid #8a987c; background: #fffef4; color: var(--ink); border-radius: 0; }
.emerurd-card textarea { resize: vertical; font-size: 13px; line-height: 1.45; }
.emerurd-home .button, .battle-controls .button { background: #e5eacb; border: 2px solid #536952; border-radius: 2px; box-shadow: 2px 2px #b6c09b; color: #233d32; padding: 9px 13px; text-shadow: none; cursor: pointer; font-family: inherit; }
.emerurd-home .button:hover:not(:disabled) { background: #c8ddb6; }
.emerurd-home button:disabled { opacity: .5; cursor: default; }
.emerurd-home button:focus-visible, .emerurd-home a:focus-visible { outline: 3px solid #af622d; outline-offset: 3px; }
.emerurd-home .emerurd-hint { font-size: 12px; color: #5b695b; }
.emerurd-preview article { display: flex; align-items: center; border-top: 1px dashed #b9c0a2; padding: 8px 0; }
.emerurd-preview img { width: 64px; height: 64px; flex-shrink: 0; }
.emerurd-preview span, .emerurd-preview small { display: block; font-size: 12px; margin-top: 4px; overflow-wrap: anywhere; }
.emerurd-players { padding: 0; list-style: none; }
.emerurd-players li { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed #b9c0a2; gap: 12px; }
.emerurd-players small { display: block; margin-top: 5px; font-size: 11px; }
.emerurd-match, .emerurd-invite { background: #edf0d9; border: 2px solid #a5b18e; padding: 12px; margin: 12px 0; }
.emerurd-match h3 { font-size: 15px; margin: 0; }
.emerurd-match h3 span { display: inline-block; padding: 5px 10px; background: var(--green); color: white; }
.emerurd-game-links { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; margin-bottom: 14px; }
.emerurd-home a { color: #265d48; }
.emerurd-error { white-space: pre-wrap; background: #ffecce; border: 3px solid #a75d34; padding: 16px; margin-bottom: 24px; }
.emerurd-home footer { text-align: center; font-size: 11px; line-height: 1.8; padding: 10px; }
.header { background: #e1e6cb !important; border-color: var(--line) !important; }
.emerurd-brand { font-size: 18px; font-weight: bold; padding: 12px; color: var(--green); }
.header .logo, .header .options, .header .userbar button[data-href="options"], .header .userbar button[name="openUserOptions"] { display: none; }
.ps-room { background: #d4ddc0; }
.battle { border: 3px solid #526b59; background: #abc68a; }
.battle .statbar { font-family: "Courier New", monospace; border-radius: 0; }
.battle .statbar .hpbar, .battle .statbar .hpbar .hp { border-radius: 0; }
.battle .statbar .hpbar { border: 2px solid #3d5544; background: #f5f0d4; }
.battle .statbar .hpbar .hp { background: #50ba79; border-color: #3f9261; }
.battle-log, .battle-log-add { background: #faf8e6; font-family: "Courier New", monospace; }
.battle-log-add, .battle-controls .openteamsheets, .battle-controls button[name="openSheet"] { display: none; }
.chat-log-add { display: none; }
.emerurd-category { display: inline-block; border: 1px solid #68775e; background: #e0e6c9; padding: 1px 3px; font: 10px monospace; }
.battle-controls { background: #d4ddc0; font-family: "Courier New", monospace; }
@media (max-width: 760px) { .emerurd-columns { grid-template-columns: 1fr; gap: 0; } .emerurd-home { padding: 16px; } .emerurd-title { padding-top: 12px; } }

.emerurd-graphics .battle img, .emerurd-graphics .pokemonicon, .emerurd-graphics .emerurd-preview img { image-rendering: pixelated; }
