:root {
  --bg: #14151b;
  --panel: #1c1f26;
  --panel2: #252933;
  --line: #353b47;
  --text: #ecebe4;
  --muted: #9aa3ad;
  --accent: #7fd36b;
  --accent-ink: #11240c;
  --danger: #e0574f;
  --warn: #ffd84a;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  overflow: hidden;
  font-family: 'Pixelify Sans', system-ui, sans-serif;
  color: var(--text);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
  overscroll-behavior: none;
}

#game { position: fixed; inset: 0; }
#game canvas { display: block; touch-action: none; }

#loading {
  position: fixed; inset: 0; display: grid; place-items: center;
  font-size: 22px; color: var(--muted); background: var(--bg); z-index: 20;
}

/* ---------- dokunmatik kontroller ---------- */
#touch-layer { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
#touch-layer.hidden { display: none; }
.tc {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  touch-action: none;
  border-radius: 50%;
  background: rgba(16, 18, 24, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; line-height: 1;
  text-shadow: 0 1px 0 #000;
}
.tc .g { font-size: 1em; }
.tc .t { font-size: 0.36em; margin-top: 0.25em; letter-spacing: 0.02em; }
.tc.active { background: rgba(127, 211, 107, 0.55); border-color: #c9f5bd; }
.tc-mode.place { background: rgba(80, 140, 230, 0.55); }
.tc-joystick { background: rgba(16, 18, 24, 0.35); }
.tc-joystick .knob {
  position: absolute; left: 50%; top: 50%;
  width: 44%; height: 44%; border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: translate(-50%, -50%);
}
#touch-layer.editing { pointer-events: auto; background: rgba(0, 0, 0, 0.35); }
#touch-layer.editing .tc { outline: 2px dashed var(--warn); outline-offset: 4px; cursor: grab; }
#touch-layer.editing .tc.selected { outline: 3px solid #fff; }

.edit-bar {
  position: absolute; left: 50%; top: 12px; transform: translateX(-50%);
  width: min(440px, calc(100vw - 32px));
  background: var(--panel); border: 2px solid var(--line); border-radius: 10px;
  padding: 10px 14px; display: grid; gap: 8px; pointer-events: auto; font-size: 14px;
}
.edit-bar .edit-title { color: var(--muted); }
.edit-bar label { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 8px; }
.edit-btns { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- ayarlar ---------- */
#settings {
  position: fixed; inset: 0; z-index: 10;
  background: rgba(0, 0, 0, 0.55);
  display: flex; align-items: center; justify-content: center; padding: 12px;
}
#settings.hidden { display: none; }
.panel {
  width: min(720px, 100%);
  max-height: calc(100dvh - 24px);
  display: flex; flex-direction: column;
  background: var(--panel); border: 2px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  user-select: none;
}
.panel header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 6px; }
.panel h2 { margin: 0; font-size: 22px; font-weight: 600; }
.panel nav { display: flex; gap: 6px; padding: 0 16px 10px; border-bottom: 2px solid var(--line); flex-wrap: wrap; }
.panel nav button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.panel .body { overflow-y: auto; padding: 8px 16px 12px; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
.panel footer { padding: 10px 16px; border-top: 2px solid var(--line); display: flex; justify-content: space-between; gap: 8px; }

.group { margin: 12px 0; }
.group h3 { margin: 0 0 6px; font-size: 15px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid #262a33; }
.row > span { font-size: 15px; }
.binds { display: flex; gap: 6px; }
.note { color: var(--muted); font-size: 14px; line-height: 1.45; margin: 8px 0; }
.note.dim { opacity: 0.7; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.radios { display: flex; gap: 14px; flex-wrap: wrap; }
.radio { display: flex; align-items: center; gap: 6px; font-size: 15px; }
kbd { background: var(--panel2); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; font-family: inherit; }
table.kv { border-collapse: collapse; font-size: 14px; width: 100%; }
table.kv td { padding: 4px 0; border-bottom: 1px solid #262a33; }
table.kv td:last-child { text-align: right; color: var(--muted); }

button, select {
  font-family: inherit; font-size: 14px; color: var(--text);
  background: var(--panel2); border: 2px solid var(--line); border-radius: 7px;
  padding: 6px 12px; cursor: pointer; min-height: 34px;
}
button:hover { border-color: #56607a; }
button:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
button.icon { padding: 4px 10px; }
button.bind { min-width: 104px; }
button.bind.conflict { border-color: var(--danger); color: #ffb3ad; }
button.bind.capturing { border-color: var(--warn); color: var(--warn); }
input[type=range] { width: 100%; accent-color: var(--accent); }

@media (max-width: 520px) {
  .row { flex-wrap: wrap; }
  button.bind { min-width: 84px; }
}

/* ---------- Nasıl oynanır (sol panel) ---------- */
#help {
  position: fixed; left: 12px; top: 64px; z-index: 4;
  width: 270px; max-height: calc(100dvh - 190px);
  display: flex; flex-direction: column;
  background: rgba(16, 18, 24, 0.78); border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px; font-size: 13px; line-height: 1.35;
  backdrop-filter: blur(3px);
}
body[data-device=mobile] #help { top: 34px; left: 8px; width: 240px; max-height: calc(100dvh - 44px); }
#help.collapsed { width: auto; background: none; border: 0; backdrop-filter: none; }
#help .help-open {
  background: rgba(16, 18, 24, 0.75); border-color: rgba(255, 255, 255, 0.2);
  font-size: 13px; min-height: 30px; padding: 4px 10px;
}
#help .help-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 4px; font-size: 15px; }
#help .help-head button { min-height: 26px; padding: 0 10px; font-size: 16px; }
#help .help-scroll { overflow-y: auto; padding: 0 10px 10px; touch-action: pan-y; }
#help h4 { margin: 8px 0 4px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
#help ul, #help ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
#help .help-keys li { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
#help .help-keys li > span:last-child { color: #d9d7cf; }
#help kbd { font-size: 11px; padding: 0 4px; background: #2b303b; border-color: #444b59; }
#help .ico { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #2b303b; font-size: 12px; flex: none; }
#help .help-steps li { display: flex; gap: 6px; align-items: flex-start; color: var(--muted); }
#help .help-steps li.now { color: #fff; }
#help .help-steps li.done { color: #7c8a77; text-decoration: line-through; }
#help .chk {
  flex: none; width: 15px; height: 15px; margin-top: 1px; border-radius: 3px;
  border: 2px solid #4a5160; display: grid; place-items: center; font-size: 10px; color: var(--accent-ink);
}
#help li.done .chk { background: var(--accent); border-color: var(--accent); }
#help li.now .chk { border-color: var(--warn); }
#help .help-foot { color: var(--muted); font-size: 12px; margin: 8px 0 0; }

/* ---------- envanter ---------- */
#inventory {
  --slot: clamp(30px, min(5vw, 8.4dvh), 46px);
  position: fixed; inset: 0; z-index: 8;
  background: rgba(0, 0, 0, 0.5);
  display: flex; align-items: center; justify-content: center;
}
#inventory.hidden { display: none; }
.inv-panel {
  background: #c6c6c6; color: #3a3a3a;
  border: 3px solid #fff; border-right-color: #555; border-bottom-color: #555;
  border-radius: 6px; padding: 8px 10px 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  max-height: calc(100dvh - 12px); display: flex; flex-direction: column;
}
.inv-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.inv-tabs, .inv-tools { display: flex; gap: 4px; }
.inv-panel button {
  background: #8b8b8b; color: #fff; border: 2px solid #373737; border-radius: 4px;
  min-height: 28px; padding: 2px 10px; font-size: 13px; text-shadow: 0 1px 0 #333;
}
.inv-panel button.on { background: #5d9c3f; border-color: #2c4d1d; }
.inv-body.hidden, .inv-recipes.hidden { display: none; }
.inv-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.inv-armor { display: grid; gap: 2px; }
.inv-char {
  width: calc(var(--slot) * 1.6); height: calc(var(--slot) * 3 + 4px);
  background: #000; border: 2px solid #555; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.inv-char canvas { height: 80%; image-rendering: pixelated; }
.inv-def { color: #cfe8ff; font-size: 11px; }
.inv-craft { margin-left: auto; }
.craft-title { font-size: 13px; margin-bottom: 3px; }
.craft-row { display: flex; align-items: center; gap: 8px; }
.craft-grid { display: grid; gap: 2px; }
.craft-row .arrow { font-size: calc(var(--slot) * 0.6); color: #6b6b6b; }
.craft-msg { min-height: 16px; font-size: 12px; color: #a32020; margin-top: 2px; }
.inv-main, .inv-hotbar { display: grid; grid-template-columns: repeat(9, var(--slot)); gap: 2px; }
.inv-hotbar { margin-top: 8px; }

.slot {
  position: relative; width: var(--slot); height: var(--slot);
  background: #8b8b8b; border: 2px solid #373737; border-right-color: #fff; border-bottom-color: #fff;
  touch-action: none; cursor: pointer;
}
.slot:hover { background: #a3a3a3; }
.slot.sel { box-shadow: inset 0 0 0 2px #fff; }
.slot.result { width: calc(var(--slot) * 1.25); height: calc(var(--slot) * 1.25); }
.slot.result.ready { background: #9cc47f; }
.slot[data-ph]:not(.filled)::before {
  content: attr(data-ph); position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 9px; color: #5e5e5e; text-align: center;
}
.slot img, .inv-held img { position: absolute; inset: 12%; width: 76%; height: 76%; image-rendering: pixelated; pointer-events: none; }
.slot .n, .inv-held .n {
  position: absolute; right: 2px; bottom: 0; font-size: calc(var(--slot) * 0.36);
  color: #fff; text-shadow: 1px 1px 0 #3f3f3f; pointer-events: none;
}
.slot .dur, .inv-held .dur { position: absolute; left: 12%; right: 12%; bottom: 8%; height: 3px; background: #000; pointer-events: none; }
.slot .dur b, .inv-held .dur b { display: block; height: 2px; }
.inv-held {
  position: fixed; left: 0; top: 0; width: var(--slot); height: var(--slot);
  margin: calc(var(--slot) / -2) 0 0 calc(var(--slot) / -2);
  pointer-events: none; z-index: 9;
}
.inv-tip {
  position: fixed; left: 0; top: 0; z-index: 9; pointer-events: none;
  background: #1b0f2b; border: 2px solid #3f1f7a; color: #fff; padding: 4px 8px; border-radius: 4px;
  display: grid; gap: 2px; font-size: 13px;
}
.inv-tip small { color: #a9a9c9; }
.inv-tip.hidden { display: none; }

.inv-recipes {
  width: calc(var(--slot) * 9 + 16px); max-height: calc(100dvh - 90px);
  overflow-y: auto; display: grid; gap: 4px; align-content: start; touch-action: pan-y;
}
.rec-note { margin: 0 0 4px; font-size: 12px; color: #4a4a4a; }
.inv-panel button.recipe {
  display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; column-gap: 8px;
  text-align: left; background: #9a9a9a; color: #1e1e1e; text-shadow: none; padding: 4px 8px;
}
.recipe img { grid-row: span 2; width: 28px; height: 28px; image-rendering: pixelated; align-self: center; }
.recipe .rn { font-weight: 600; }
.recipe .rn em { font-style: normal; font-size: 10px; background: #6e5228; color: #fff; padding: 0 4px; border-radius: 3px; margin-left: 4px; }
.recipe .ri { font-size: 11px; }
.recipe .ri .lack { color: #8a1010; }
.inv-panel button.recipe.ok { background: #a9cf8e; }
.inv-panel button.recipe.off { opacity: 0.5; }
#help .help-keys li > span:last-child { flex: 1; min-width: 7em; }
#help .help-keys li:has(.ico) { flex-wrap: nowrap; }
body[data-device=mobile] #help:not(.collapsed) { max-height: 52dvh; font-size: 12px; }

/* ---------- giriş ekranı (oda) ---------- */
#loading.hidden, #lobby.hidden, #room.hidden { display: none; }
#lobby {
  position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px;
  background:
    linear-gradient(#8ccaf0 0 52%, #5fa83a 52% 55%, #866043 55% 80%, #7d7d7d 80%);
  overflow-y: auto; touch-action: pan-y;
}
.lobby-card {
  width: min(380px, 100%); display: grid; gap: 12px; padding: 22px 20px 18px;
  background: var(--panel); border: 2px solid var(--line); border-radius: 12px;
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.25);
}
.lobby-title { margin: 0 0 4px; text-align: center; font-size: 40px; font-weight: 600; letter-spacing: 0.12em; color: var(--accent); text-shadow: 0 3px 0 var(--accent-ink); }
.lobby-field { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.lobby-field input {
  font: inherit; font-size: 18px; color: var(--text); background: var(--bg);
  border: 2px solid var(--line); border-radius: 7px; padding: 8px 10px; min-width: 0;
  user-select: text; -webkit-user-select: text;
}
.lobby-field input:focus { outline: none; border-color: var(--accent); }
#lb-code { letter-spacing: 0.2em; text-transform: uppercase; }
.lobby-join { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.lobby-join button { min-height: 44px; }
.lobby-card > button { min-height: 44px; font-size: 16px; }
.lobby-solo { background: none; border-color: transparent; color: var(--muted); }
.lobby-msg { margin: 0; min-height: 1.3em; font-size: 14px; text-align: center; color: var(--muted); }
.lobby-msg.err { color: #ffb3ad; }
.lobby-foot { margin: 0; font-size: 12px; line-height: 1.45; color: var(--muted); text-align: center; }

/* ---------- oyun içi oda rozeti ---------- */
#room { position: fixed; inset: 0; pointer-events: none; z-index: 6; }
.room-badge {
  position: absolute; left: 50%; transform: translateX(-50%);
  top: calc(env(safe-area-inset-top, 0px) + 40px);
  display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 12px;
  background: rgba(16, 18, 24, 0.7); border: 2px solid rgba(255, 255, 255, 0.18); border-radius: 9px;
  font-size: 14px; pointer-events: auto; white-space: nowrap;
}
.room-code b { color: var(--accent); letter-spacing: 0.12em; }
.room-count { color: var(--muted); }
.room-invite { min-height: 28px; padding: 2px 10px; font-size: 13px; }
.room-status {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 9px; text-align: center;
  background: rgba(16, 18, 24, 0.85); border: 2px solid var(--warn); color: var(--warn); font-size: 15px;
}
.room-toasts { position: absolute; left: 50%; transform: translateX(-50%); top: calc(env(safe-area-inset-top, 0px) + 80px); display: grid; gap: 6px; justify-items: center; }
.room-toast {
  padding: 5px 12px; border-radius: 7px; background: rgba(16, 18, 24, 0.8); font-size: 14px;
  transition: opacity 0.5s; white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis;
}
.room-toast.out { opacity: 0; }
@media (max-width: 520px) {
  .room-badge { font-size: 12px; gap: 6px; }
}
/* Mobilde üst ortada ⚙ düğmesi var: rozet onun altına iner. */
#room.mobile .room-badge { top: calc(env(safe-area-inset-top, 0px) + 58px); }
#room.mobile .room-toasts { top: calc(env(safe-area-inset-top, 0px) + 122px); }

/* ---------- dünyalarım ---------- */
.lobby-worlds h2 { margin: 0 0 6px; font-size: 13px; font-weight: 400; color: var(--muted); }
.lobby-worlds ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 210px; overflow-y: auto; touch-action: pan-y; }
.lobby-worlds li { display: flex; gap: 6px; }
.lw-enter {
  flex: 1; min-width: 0; display: grid; text-align: left; gap: 1px; padding: 8px 12px; min-height: 48px;
  background: var(--panel2);
}
.lw-enter:hover { border-color: var(--accent); }
.lw-enter b { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lw-enter small { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.lw-del { flex: none; width: 40px; padding: 0; color: var(--muted); background: none; }
.lw-del:hover { color: #ffb3ad; border-color: var(--danger); }
.lobby-new { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.lobby-new[hidden], .lobby-worlds[hidden], .lobby-card > button[hidden] { display: none; }
.lobby-new button { min-height: 44px; }
.room-name { font-weight: 600; max-width: 34vw; overflow: hidden; text-overflow: ellipsis; }

/* ---------- ana menü ekranları ---------- */
.lobby-card[hidden] { display: none; }
.lobby-hero { width: 96px; height: 120px; justify-self: center; image-rendering: pixelated; margin: -4px 0 2px; }
.lobby-big { min-height: 52px !important; font-size: 20px !important; }
.lobby-invite { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 12px; border: 2px solid var(--accent); border-radius: 9px; background: rgba(127, 211, 107, 0.08); }
.lobby-invite[hidden] { display: none; }
.lobby-invite b { color: var(--accent); letter-spacing: 0.12em; }
.lobby-head { display: flex; align-items: center; gap: 10px; }
.lobby-head h2 { margin: 0; font-size: 22px; font-weight: 600; }
.lobby-head .icon { font-size: 22px; line-height: 1; padding: 2px 12px; }
.lobby-worlds h3 { margin: 0 0 6px; font-size: 13px; font-weight: 400; color: var(--muted); }
.lobby-row { display: flex; gap: 8px; justify-content: space-between; }
.lobby-row button { flex: 1; min-height: 44px; }
.lobby-wide { width: min(560px, 100%); }
.av-wrap { display: grid; grid-template-columns: 128px 1fr; gap: 14px; align-items: start; }
.av-preview { width: 128px; height: 200px; image-rendering: pixelated; background: linear-gradient(#8ccaf0 0 78%, #5fa83a 78% 81%, #866043 81%); border-radius: 9px; border: 2px solid var(--line); position: sticky; top: 0; }
.av-opts { display: grid; gap: 10px; }
.av-row { display: grid; gap: 4px; }
.av-row > span { font-size: 13px; color: var(--muted); }
.av-sw { display: flex; flex-wrap: wrap; gap: 6px; }
.av-c { width: 32px; height: 32px; min-height: 0; padding: 0; border-radius: 7px; background: var(--c); border: 2px solid rgba(0, 0, 0, 0.35); }
.av-c.on { outline: 3px solid #fff; outline-offset: 1px; }
.av-hair { min-height: 32px; padding: 2px 10px; font-size: 13px; }
.av-hair.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@media (max-width: 460px) {
  .av-wrap { grid-template-columns: 1fr; }
  .av-preview { justify-self: center; width: 96px; height: 150px; position: static; }
}

/* ---------- sohbet ---------- */
.room-chat { min-height: 28px; padding: 0 8px; font-size: 15px; }
.chat-log {
  position: absolute; right: 12px; bottom: 110px; width: min(360px, calc(100vw - 24px)); max-height: 34vh; align-items: flex-end;
  display: flex; flex-direction: column; gap: 3px; overflow: hidden; pointer-events: none;
}
.chat-log.open { overflow-y: auto; pointer-events: auto; touch-action: pan-y; background: rgba(16, 18, 24, 0.55); border-radius: 8px; padding: 6px; }
.chat-msg {
  align-self: flex-start; max-width: 100%; padding: 3px 8px; border-radius: 6px; font-size: 14px; line-height: 1.35;
  background: rgba(16, 18, 24, 0.72); overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; transition: opacity 0.6s;
}
.chat-msg b { color: var(--accent); font-weight: 600; }
.chat-msg.mine b { color: var(--warn); }
.chat-msg.sys { color: var(--muted); font-style: italic; }
.chat-msg.old { opacity: 0; }
.chat-log.open .chat-msg.old { opacity: 1; }
.chat-bar {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 84px);
  width: min(520px, calc(100vw - 24px)); display: flex; gap: 6px; pointer-events: auto;
  padding: 6px; background: var(--panel); border: 2px solid var(--line); border-radius: 10px;
}
.chat-bar[hidden] { display: none; }
.chat-in {
  flex: 1; min-width: 0; font: inherit; font-size: 16px; color: var(--text); background: var(--bg);
  border: 2px solid var(--line); border-radius: 7px; padding: 6px 10px; user-select: text; -webkit-user-select: text;
}
.chat-in:focus { outline: none; border-color: var(--accent); }
#room.mobile .chat-log { right: auto; align-items: center; bottom: auto; top: calc(env(safe-area-inset-top, 0px) + 122px); left: 50%; transform: translateX(-50%); width: min(380px, calc(100vw - 24px)); max-height: 30vh; }
#room.mobile .chat-bar { top: calc(env(safe-area-inset-top, 0px) + 8px); bottom: auto; }
@media (min-width: 521px) { .room-badge { top: calc(env(safe-area-inset-top, 0px) + 52px); } }

/* ---------- ekran dışındaki oyuncu işareti ---------- */
.pmark {
  position: absolute; transform: translateY(-50%); padding: 3px 8px; border-radius: 6px;
  background: rgba(16, 18, 24, 0.75); border: 2px solid var(--accent); color: #fff; font-size: 13px;
  white-space: nowrap; pointer-events: none; animation: pmark 1.2s ease-in-out infinite alternate;
}
.pmark[hidden] { display: none; }
.pmark.up, .pmark.down { transform: translate(-50%, -50%); }
.pmark.dead { border-color: var(--danger); opacity: 0.7; }
@keyframes pmark { to { border-color: #c9f5bd; } }
@media (prefers-reduced-motion: reduce) { .pmark { animation: none; } }
