/* ==========================================================================
   Soonyang Legends: Origins — "Sunlit Storybook" UI
   Deep ink-navy glass panels with gilded trim, parchment dialogue, Cinzel headings.
   ========================================================================== */
@font-face { font-family: 'Cinzel'; src: url('../assets/fonts/cinzel-latin.woff') format('woff'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../assets/fonts/nunito-latin.woff') format('woff'); font-weight: 200 1000; font-display: swap; }

:root {
  --ink: #141a2e;
  --ink-2: #1d2540;
  --glass: rgba(18, 24, 44, 0.86);
  --glass-2: rgba(30, 38, 66, 0.92);
  --gold: #e3b23c;
  --gold-2: #ffd98a;
  --gold-dim: #9c7a2c;
  --cream: #f7ecd2;
  --parch: #f3e4c2;
  --parch-ink: #3b2414;
  --text: #f4ecdc;
  --muted: #b9b0a0;
  --hp: #e8435a;
  --hp-2: #ff7a6a;
  --mp: #3a8bff;
  --mp-2: #7fd0ff;
  --exp: #c58bff;
  --good: #7ddc6f;
  --warn: #ffb03d;
  --bad: #ff6a6a;
  --r: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--ink); color: var(--text); overscroll-behavior: none; touch-action: none; user-select: none; -webkit-user-select: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; user-select: text; -webkit-user-select: text; }
.hidden, [hidden] { display: none !important; }

#game-canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; outline: none; touch-action: none; }
#overlay { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }

/* ----------------------------------------------------------------- buttons */
.btn {
  position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 220px; padding: 12px 22px; border-radius: 12px; border: 1px solid rgba(227, 178, 60, 0.55);
  background: linear-gradient(180deg, rgba(48, 58, 96, 0.95), rgba(26, 32, 56, 0.95));
  font-family: 'Cinzel', serif; font-weight: 700; letter-spacing: 0.06em; font-size: 15px; color: var(--cream);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}
.btn small { font-family: 'Nunito', sans-serif; font-weight: 600; letter-spacing: 0; font-size: 12px; color: var(--muted); margin-top: 2px; }
.btn:hover { transform: translateY(-1px); border-color: var(--gold-2); box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 6px 18px rgba(0,0,0,0.4), 0 0 0 1px rgba(255, 217, 138, 0.25); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, #f2c75c, #c98f22); color: #2a1a08; border-color: #fff0c0; }
.btn.primary small { color: #5a3a10; }
.btn.ghost { background: rgba(20, 26, 46, 0.55); }
.btn.danger { border-color: rgba(255, 106, 106, 0.6); color: #ffd3d3; }
.btn.sm { min-width: 0; padding: 7px 14px; font-size: 13px; border-radius: 9px; }
.btn:disabled { opacity: 0.45; pointer-events: none; }

/* ----------------------------------------------------------------- screens */
.screen { position: fixed; inset: 0; display: none; z-index: 20; }
.screen.active { display: flex; }
#screen-loading { background: radial-gradient(ellipse at 50% 40%, #2a3a6a 0%, var(--ink) 70%); align-items: center; justify-content: center; }
.loading-inner { text-align: center; width: min(420px, 86vw); }
.loading-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; margin: 26px 0 12px; border: 1px solid rgba(227, 178, 60, 0.35); }
.loading-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-dim), var(--gold-2)); transition: width 0.25s; }
#loading-text { color: var(--muted); font-size: 14px; }

.logo { display: flex; flex-direction: column; align-items: center; line-height: 1; text-shadow: 0 3px 0 #3b2414, 0 8px 30px rgba(0, 0, 0, 0.6); }
.logo-crest { color: var(--gold-2); font-size: 28px; margin-bottom: 8px; filter: drop-shadow(0 0 12px rgba(255, 217, 138, 0.8)); }
.logo-top { font-family: 'Cinzel', serif; font-weight: 900; font-size: clamp(34px, 7vw, 74px); letter-spacing: 0.04em; background: linear-gradient(180deg, #fff7d6 10%, #ffd36b 55%, #c98f22 90%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 1px rgba(59, 36, 20, 0.4); }
.logo-sub { font-family: 'Cinzel', serif; font-weight: 700; font-size: clamp(16px, 2.6vw, 26px); letter-spacing: 0.6em; color: var(--cream); margin-top: 10px; padding-left: 0.6em; }
.logo.small .logo-top { font-size: 34px; }
.logo.small .logo-sub { font-size: 14px; }

#screen-title { align-items: center; justify-content: center; background: linear-gradient(180deg, rgba(10, 14, 30, 0.15) 0%, rgba(10, 14, 30, 0) 40%, rgba(10, 14, 30, 0.65) 100%); }
.title-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px; }
.tagline { font-size: 16px; color: var(--cream); text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8); margin: 4px 0 18px; font-style: italic; text-align: center; }
.title-menu { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.title-foot { position: fixed; bottom: calc(10px + var(--safe-b)); left: 0; right: 0; text-align: center; font-size: 12px; color: rgba(255, 255, 255, 0.65); text-shadow: 0 1px 3px #000; }

/* ----------------------------------------------------------------- panels */
.panel {
  background: var(--glass); border: 1px solid rgba(227, 178, 60, 0.45); border-radius: var(--r);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 0 0 1px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.panel h2, .window h2 { font-family: 'Cinzel', serif; color: var(--gold-2); margin: 0 0 12px; font-size: 20px; letter-spacing: 0.05em; }

/* ----------------------------------------------------------------- create */
#screen-create { background: linear-gradient(90deg, rgba(10, 14, 30, 0.8) 0%, rgba(10, 14, 30, 0.1) 40%, rgba(10, 14, 30, 0.1) 62%, rgba(10, 14, 30, 0.75) 100%); }
.create-layout { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 18px; padding-top: calc(18px + var(--safe-t)); gap: 18px; }
.create-left { width: 360px; max-height: calc(100vh - 36px); overflow-y: auto; padding: 18px; touch-action: pan-y; }
.create-right { width: 320px; padding: 18px; }
.create-right h3 { font-family: 'Cinzel', serif; margin: 0 0 6px; color: var(--gold-2); font-size: 22px; }
.create-right p { color: var(--cream); font-size: 14px; line-height: 1.5; }
.create-actions { display: flex; gap: 10px; margin-top: 16px; }
.create-actions .btn { min-width: 0; flex: 1; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 6px; font-weight: 800; }
.field input { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(227, 178, 60, 0.4); background: rgba(0, 0, 0, 0.35); color: var(--cream); font-size: 16px; outline: none; }
.field input:focus { border-color: var(--gold-2); }
.class-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.class-card { padding: 10px 6px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04); text-align: center; font-family: 'Cinzel', serif; font-size: 13px; font-weight: 700; }
.class-card small { display: block; font-family: 'Nunito'; font-size: 10px; color: var(--muted); font-weight: 700; margin-top: 3px; }
.class-card.sel { border-color: var(--gold-2); background: rgba(227, 178, 60, 0.18); box-shadow: 0 0 0 1px rgba(255, 217, 138, 0.3); }
.class-card.locked { opacity: 0.5; cursor: not-allowed; }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 7px 12px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.05); font-size: 13px; font-weight: 700; }
.chip.sel { border-color: var(--gold-2); background: rgba(227, 178, 60, 0.2); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.2); }
.swatch.sel { border-color: var(--gold-2); box-shadow: 0 0 0 2px rgba(255, 217, 138, 0.4); transform: scale(1.1); }
.mini-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 10px; }
.mini-stats div { text-align: center; padding: 8px 2px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); }
.mini-stats b { display: block; font-family: 'Cinzel', serif; color: var(--gold-2); font-size: 18px; }
.mini-stats span { font-size: 11px; color: var(--muted); font-weight: 800; letter-spacing: 0.1em; }

/* ----------------------------------------------------------------- HUD */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
#hud > * { pointer-events: auto; }
#hud #toasts, #hud #banner, #hud #loot-feed, #hud #cast-bar, #hud #interact-prompt { pointer-events: none; }

#player-frame { position: absolute; top: calc(12px + var(--safe-t)); left: calc(12px + var(--safe-l)); display: flex; gap: 10px; align-items: center; pointer-events: none; }
.portrait { position: relative; width: 74px; height: 74px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #4a5a90, #1a2040); border: 3px solid var(--gold); box-shadow: 0 0 0 2px #3b2414, 0 6px 16px rgba(0, 0, 0, 0.5); overflow: visible; }
.portrait img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
#lvl-badge { position: absolute; bottom: -6px; right: -6px; min-width: 28px; height: 28px; border-radius: 99px; background: linear-gradient(180deg, #ffe08a, #c98f22); color: #2a1a08; font-family: 'Cinzel', serif; font-weight: 900; font-size: 14px; display: flex; align-items: center; justify-content: center; border: 2px solid #3b2414; padding: 0 5px; }
.pf-bars { width: 220px; }
.pf-name { font-family: 'Cinzel', serif; font-weight: 700; font-size: 15px; text-shadow: 0 2px 3px rgba(0, 0, 0, 0.9); margin-bottom: 4px; color: var(--cream); }
.bar { position: relative; height: 16px; border-radius: 99px; background: rgba(10, 12, 24, 0.75); border: 1px solid rgba(0, 0, 0, 0.6); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(227, 178, 60, 0.35); overflow: hidden; margin-bottom: 4px; }
.bar i { position: absolute; inset: 0 auto 0 0; width: 100%; border-radius: 99px; transition: width 0.2s ease-out; }
.bar.hp i { background: linear-gradient(180deg, var(--hp-2), var(--hp) 55%, #a82640); }
.bar.mp i { background: linear-gradient(180deg, var(--mp-2), var(--mp) 55%, #1d4f9c); }
.bar.mp { height: 12px; }
.bar span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 900; text-shadow: 0 1px 2px #000; letter-spacing: 0.02em; }
#buffs { display: flex; gap: 4px; margin-top: 2px; }
.buff { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--gold); background-size: cover; position: relative; box-shadow: 0 2px 6px rgba(0,0,0,0.5); }
.buff span { position: absolute; bottom: -2px; right: 0; font-size: 10px; font-weight: 900; text-shadow: 0 1px 2px #000; }

#target-frame { position: absolute; top: calc(14px + var(--safe-t)); left: 50%; transform: translateX(-50%); width: min(340px, 46vw); text-align: center; pointer-events: none; }
.tf-name { font-family: 'Cinzel', serif; font-weight: 700; font-size: 15px; text-shadow: 0 2px 3px #000; margin-bottom: 4px; }
#target-frame .bar { height: 14px; }
#target-frame.elite .tf-name { color: #ffb36b; }
#target-frame.elite .bar { box-shadow: inset 0 2px 4px rgba(0,0,0,0.6), 0 0 0 1px #ff8a3d, 0 0 12px rgba(255, 120, 60, 0.5); }

#minimap-wrap { position: absolute; top: calc(12px + var(--safe-t)); right: calc(12px + var(--safe-r)); width: 170px; }
#minimap { position: relative; width: 170px; height: 170px; border-radius: 50%; border: 3px solid var(--gold); box-shadow: 0 0 0 2px #3b2414, 0 8px 20px rgba(0, 0, 0, 0.5); overflow: hidden; background: #24331f; }
#minimap canvas { width: 100%; height: 100%; display: block; }
.mm-n { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); font-family: 'Cinzel', serif; font-weight: 900; font-size: 13px; color: #fff; text-shadow: 0 1px 3px #000; transform-origin: 50% 81px; }
.mm-label { text-align: center; margin-top: -10px; position: relative; }
.mm-label span { display: inline-block; padding: 3px 12px; border-radius: 99px; background: linear-gradient(180deg, #3a2a18, #22180e); border: 1px solid var(--gold); font-family: 'Cinzel', serif; font-size: 12px; font-weight: 700; color: var(--gold-2); white-space: nowrap; }
.mm-zoom { position: absolute; top: 120px; left: -6px; display: flex; flex-direction: column; gap: 4px; }
.mm-zoom button { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--gold); background: var(--glass-2); font-weight: 900; line-height: 1; padding: 0; }

#quest-tracker { position: absolute; top: calc(214px + var(--safe-t)); right: calc(12px + var(--safe-r)); width: 230px; pointer-events: auto; }
.qt-head { font-family: 'Cinzel', serif; font-weight: 700; font-size: 13px; color: var(--gold-2); text-shadow: 0 1px 3px #000; margin-bottom: 4px; display: flex; justify-content: space-between; cursor: pointer; }
.qt-quest { background: rgba(14, 18, 34, 0.55); border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; padding: 6px 9px; margin-bottom: 6px; }
.qt-quest b { display: block; font-size: 13px; color: var(--cream); }
.qt-quest div { font-size: 12px; color: #d8d0c0; margin-top: 2px; }
.qt-quest div.done { color: var(--good); }
.qt-quest.ready { border-left-color: var(--good); }
.qt-quest.ready b::after { content: ' — Return'; color: var(--good); font-size: 11px; }
#quest-tracker.collapsed .qt-quest { display: none; }

#toasts { position: absolute; top: calc(70px + var(--safe-t)); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; width: min(520px, 90vw); }
.toast { padding: 7px 16px; border-radius: 99px; background: rgba(14, 18, 34, 0.85); border: 1px solid rgba(227, 178, 60, 0.5); font-size: 14px; font-weight: 700; text-shadow: 0 1px 2px #000; animation: toast-in 0.25s ease-out; transition: opacity 0.4s, transform 0.4s; text-align: center; }
.toast.warn { border-color: var(--warn); color: #ffe0b0; }
.toast.good { border-color: var(--good); color: #dbffd5; }
.toast.rare { border-color: #ffd36b; color: #fff1c4; box-shadow: 0 0 16px rgba(255, 211, 107, 0.35); }
.toast.soft { opacity: 0.85; font-weight: 600; }
.toast.out { opacity: 0; transform: translateY(-8px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px) scale(0.96); } to { opacity: 1; transform: none; } }

#banner { position: absolute; top: 24%; left: 0; right: 0; text-align: center; opacity: 0; transition: opacity 0.6s; pointer-events: none; }
#banner.show { opacity: 1; }
.banner-title { font-family: 'Cinzel', serif; font-weight: 900; font-size: clamp(28px, 5vw, 52px); letter-spacing: 0.06em; background: linear-gradient(180deg, #fff7d6, #ffd36b 60%, #c98f22); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 #3b2414) drop-shadow(0 6px 16px rgba(0,0,0,0.6)); }
.banner-sub { font-family: 'Cinzel', serif; font-size: 14px; letter-spacing: 0.4em; color: var(--cream); text-shadow: 0 2px 4px #000; margin-bottom: 4px; }
#banner.levelup .banner-title { font-size: clamp(34px, 6vw, 64px); }

#loot-feed { position: absolute; right: calc(16px + var(--safe-r)); bottom: calc(150px + var(--safe-b)); display: flex; flex-direction: column-reverse; gap: 4px; align-items: flex-end; }
.loot { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 8px; background: rgba(14, 18, 34, 0.8); border: 1px solid rgba(255, 255, 255, 0.12); font-size: 13px; font-weight: 700; animation: toast-in 0.2s; transition: opacity 0.5s; }
.loot img { width: 24px; height: 24px; }
.loot.out { opacity: 0; }

#interact-prompt { position: absolute; bottom: calc(130px + var(--safe-b)); left: 50%; transform: translateX(-50%); padding: 7px 16px; border-radius: 99px; background: rgba(14, 18, 34, 0.85); border: 1px solid var(--gold); font-weight: 800; font-size: 14px; }
#interact-prompt kbd { display: inline-block; padding: 0 6px; margin-right: 6px; border-radius: 5px; background: var(--gold); color: #2a1a08; font-family: 'Cinzel', serif; }
#cast-bar { position: absolute; bottom: calc(170px + var(--safe-b)); left: 50%; transform: translateX(-50%); width: 240px; height: 18px; border-radius: 99px; background: rgba(10, 12, 24, 0.8); border: 1px solid var(--gold); overflow: hidden; }
#cast-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #c98f22, #ffe08a); width: 0; }
#cast-bar span { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; text-shadow: 0 1px 2px #000; }

#hotbar { position: absolute; bottom: calc(22px + var(--safe-b)); left: 50%; transform: translateX(-50%); display: flex; gap: 8px; padding: 8px 10px; border-radius: 16px; background: rgba(14, 18, 34, 0.72); border: 1px solid rgba(227, 178, 60, 0.45); box-shadow: var(--shadow); }
.slot { position: relative; width: 56px; height: 56px; border-radius: 12px; border: 2px solid rgba(227, 178, 60, 0.7); background: #1a2040 center/cover no-repeat; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6), 0 3px 8px rgba(0, 0, 0, 0.4); overflow: hidden; padding: 0; }
.slot:hover { border-color: var(--gold-2); }
.slot.locked { filter: grayscale(1) brightness(0.5); }
.slot.nomp::after { content: ''; position: absolute; inset: 0; background: rgba(40, 80, 200, 0.35); }
.slot .key { position: absolute; top: 2px; left: 4px; font-size: 11px; font-weight: 900; text-shadow: 0 1px 2px #000, 0 0 3px #000; z-index: 2; }
.slot .count { position: absolute; bottom: 2px; right: 4px; font-size: 12px; font-weight: 900; text-shadow: 0 1px 2px #000, 0 0 3px #000; z-index: 2; }
.slot .cd { position: absolute; inset: 0; background: conic-gradient(rgba(5, 8, 20, 0.78) var(--p, 0%), transparent 0); z-index: 1; }
.slot .cdt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 16px; text-shadow: 0 1px 3px #000; z-index: 2; }
.slot .lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 900; z-index: 2; color: #fff; text-shadow: 0 1px 2px #000; }
.slot.attack { border-color: #ffd98a; }
.slot.flash { animation: slotflash 0.3s; }
@keyframes slotflash { 0% { box-shadow: 0 0 0 4px rgba(255, 230, 150, 0.9); } 100% { box-shadow: 0 0 0 0 rgba(255, 230, 150, 0); } }

#menu-buttons { position: absolute; right: calc(14px + var(--safe-r)); bottom: calc(26px + var(--safe-b)); display: flex; gap: 6px; }
#menu-buttons button { width: 54px; height: 50px; border-radius: 12px; border: 1px solid rgba(227, 178, 60, 0.5); background: rgba(14, 18, 34, 0.8); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 0; }
#menu-buttons b { font-family: 'Cinzel', serif; font-size: 13px; color: var(--gold-2); }
#menu-buttons span { font-size: 10px; color: var(--muted); font-weight: 800; }
#menu-buttons button:hover { border-color: var(--gold-2); }

#exp-bar { position: absolute; left: 0; right: 0; bottom: 0; height: calc(9px + var(--safe-b)); background: rgba(10, 12, 24, 0.85); border-top: 1px solid rgba(227, 178, 60, 0.4); pointer-events: auto; }
#exp-bar i { position: absolute; top: 0; left: 0; height: 9px; background: linear-gradient(90deg, #8a4bd1, var(--exp) 60%, #f0d8ff); box-shadow: 0 0 10px rgba(197, 139, 255, 0.7); transition: width 0.3s; }
#exp-bar span { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 800; text-shadow: 0 1px 2px #000; opacity: 0; transition: opacity 0.2s; white-space: nowrap; }
#exp-bar:hover span, #exp-bar.flash span { opacity: 1; }

/* ----------------------------------------------------------------- overlay (world-anchored) */
.plate { position: absolute; left: 0; top: 0; text-align: center; white-space: nowrap; will-change: transform; }
.plate-name { font-weight: 900; font-size: 13px; color: #fff; text-shadow: 0 1px 2px #000, 0 0 4px rgba(0, 0, 0, 0.8); }
.plate-sub { font-size: 11px; font-weight: 700; color: #f2e2b0; text-shadow: 0 1px 2px #000; }
.plate-npc .plate-name { color: var(--gold-2); font-family: 'Cinzel', serif; font-size: 13px; }
.plate-player .plate-name { color: #bfe8ff; }
.plate-monster .plate-name { font-size: 12px; color: #ffe9e0; }
.plate.easy .plate-name { color: #b8d8b0; }
.plate.hard .plate-name { color: #ff9a8a; }
.plate.elite .plate-name { color: #ffb36b; font-size: 14px; }
.plate.elite .plate-name::before { content: '♛ '; }
.plate.rare .plate-name { color: #ffe066; }
.plate.targeted .plate-name { text-decoration: underline; text-decoration-color: rgba(255, 106, 106, 0.8); text-underline-offset: 3px; }
.plate-hp { width: 64px; height: 6px; margin: 2px auto 0; border-radius: 99px; background: rgba(0, 0, 0, 0.7); border: 1px solid rgba(0, 0, 0, 0.8); overflow: hidden; }
.plate-hp i { display: block; height: 100%; background: linear-gradient(180deg, #ff8a7a, #e0324a); }
.plate.elite .plate-hp { width: 110px; height: 8px; }

.float { position: absolute; left: 0; top: 0; font-weight: 1000; font-size: 22px; color: #fff; text-shadow: 0 2px 0 #3b1a0a, 0 0 6px rgba(0, 0, 0, 0.7); will-change: transform, opacity; white-space: nowrap; font-family: 'Nunito', sans-serif; }
.float.dmg { color: #fff3d0; }
.float.crit { color: #ffb12b; font-size: 34px; text-shadow: 0 3px 0 #5a1a00, 0 0 12px rgba(255, 140, 40, 0.8); }
.float.hurt { color: #ff6a6a; font-size: 22px; }
.float.miss { color: #c9d4e8; font-size: 18px; font-style: italic; }
.float.heal { color: #8dff8a; }
.float.mana { color: #8ad0ff; }
.float.exp { color: #e4c2ff; font-size: 16px; }
.float.gold { color: #ffe066; font-size: 15px; }
.float.notice { color: #ffe9a0; font-size: 18px; }
.float.guard { color: #9ff0ff; }

.bubble { position: absolute; left: 0; top: 0; max-width: 220px; padding: 7px 11px; border-radius: 12px; background: var(--parch); color: var(--parch-ink); font-size: 13px; font-weight: 700; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35); white-space: normal; text-align: center; transition: opacity 0.3s; }
.bubble::after { content: ''; position: absolute; left: 50%; bottom: -7px; margin-left: -7px; border: 7px solid transparent; border-top-color: var(--parch); border-bottom: 0; }

/* ----------------------------------------------------------------- windows */
#window-layer { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; background: rgba(6, 8, 18, 0.35); }
.window { width: min(860px, 96vw); max-height: min(640px, 92vh); display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(30, 38, 66, 0.97), rgba(18, 24, 44, 0.97)); border: 1px solid rgba(227, 178, 60, 0.6); border-radius: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08); animation: win-in 0.18s ease-out; }
@keyframes win-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
.window header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 4px; }
.window header h2 { margin: 0; }
.window .x { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(227, 178, 60, 0.5); background: rgba(0, 0, 0, 0.3); font-size: 20px; line-height: 1; }
.window-tabs { display: flex; gap: 6px; padding: 6px 18px 0; }
.window-tabs button { padding: 7px 14px; border-radius: 9px 9px 0 0; border: 1px solid rgba(227, 178, 60, 0.3); border-bottom: 0; background: rgba(0, 0, 0, 0.2); font-weight: 800; font-size: 13px; color: var(--muted); }
.window-tabs button.sel { background: rgba(227, 178, 60, 0.16); color: var(--gold-2); }
.window-body { padding: 14px 18px 18px; overflow-y: auto; touch-action: pan-y; border-top: 1px solid rgba(227, 178, 60, 0.25); }

/* inventory */
.inv-layout { display: grid; grid-template-columns: 250px 1fr; gap: 16px; }
.paperdoll { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-content: start; }
.paperdoll .eslot { grid-column: span 1; }
.eslot { position: relative; height: 70px; border-radius: 12px; border: 1px dashed rgba(227, 178, 60, 0.4); background: rgba(0, 0, 0, 0.25) center/46px no-repeat; display: flex; align-items: flex-end; justify-content: center; font-size: 10px; font-weight: 800; color: var(--muted); padding-bottom: 3px; }
.eslot.filled { border-style: solid; }
.eslot span { background: rgba(0, 0, 0, 0.6); border-radius: 4px; padding: 0 4px; }
.stat-summary { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 13px; margin-top: 6px; padding: 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.22); }
.stat-summary div { display: flex; justify-content: space-between; }
.stat-summary b { color: var(--gold-2); }
.bag-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 800; }
.gold { display: inline-flex; align-items: center; gap: 4px; color: #ffe066; font-weight: 900; }
.gold img { width: 20px; height: 20px; }
.bag { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.cell { position: relative; aspect-ratio: 1; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(0, 0, 0, 0.3) center/78% no-repeat; padding: 0; }
.cell .count { position: absolute; bottom: 1px; right: 4px; font-size: 12px; font-weight: 900; text-shadow: 0 1px 2px #000; }
.cell.sel { outline: 2px solid var(--gold-2); outline-offset: 1px; }
.cell[data-rarity='uncommon'] { border-color: rgba(125, 220, 111, 0.6); box-shadow: inset 0 0 10px rgba(125, 220, 111, 0.2); }
.cell[data-rarity='rare'] { border-color: rgba(91, 179, 255, 0.7); box-shadow: inset 0 0 12px rgba(91, 179, 255, 0.25); }
.cell[data-rarity='epic'] { border-color: rgba(196, 123, 255, 0.7); box-shadow: inset 0 0 12px rgba(196, 123, 255, 0.3); }
.cell[data-rarity='legendary'] { border-color: rgba(255, 182, 61, 0.9); box-shadow: inset 0 0 14px rgba(255, 182, 61, 0.35); }
.item-detail { margin-top: 12px; padding: 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(227, 178, 60, 0.25); min-height: 96px; }
.item-detail h4 { margin: 0 0 2px; font-family: 'Cinzel', serif; font-size: 16px; }
.item-detail .meta { font-size: 12px; color: var(--muted); font-weight: 800; }
.item-detail p { margin: 6px 0; font-size: 13px; color: #e6dccb; font-style: italic; }
.item-detail .stats { font-size: 13px; font-weight: 800; color: var(--good); }
.item-detail .stats .neg { color: var(--bad); }
.item-detail .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.cmp { font-size: 12px; margin-left: 4px; }
.cmp.up { color: var(--good); } .cmp.down { color: var(--bad); }

/* character */
.char-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.attr { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.22); margin-bottom: 6px; }
.attr .k { font-family: 'Cinzel', serif; font-weight: 900; width: 40px; color: var(--gold-2); }
.attr .v { font-weight: 900; font-size: 18px; width: 44px; }
.attr .bonus { color: var(--good); font-size: 12px; font-weight: 800; }
.attr .d { flex: 1; font-size: 11px; color: var(--muted); }
.attr button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--gold); background: rgba(227, 178, 60, 0.18); font-weight: 900; font-size: 18px; padding: 0; }
.attr button:disabled { opacity: 0.25; }
.derived { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; font-size: 13px; padding: 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.22); }
.derived div { display: flex; justify-content: space-between; }
.derived b { color: var(--cream); }
.points { padding: 8px 12px; border-radius: 10px; background: rgba(227, 178, 60, 0.15); border: 1px solid rgba(227, 178, 60, 0.4); margin-bottom: 10px; font-weight: 800; }
.ach { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; background: rgba(0, 0, 0, 0.2); margin-bottom: 4px; font-size: 13px; }
.ach.locked { opacity: 0.45; }
.ach i { font-style: normal; color: var(--gold-2); }
.subhead { font-family: 'Cinzel', serif; color: var(--gold-2); font-size: 14px; margin: 14px 0 8px; letter-spacing: 0.05em; }

/* quests */
.quest-layout { display: grid; grid-template-columns: 240px 1fr; gap: 16px; min-height: 300px; }
.quest-list button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(0, 0, 0, 0.2); margin-bottom: 6px; font-weight: 800; font-size: 14px; }
.quest-list button.sel { border-color: var(--gold-2); background: rgba(227, 178, 60, 0.14); }
.quest-list button small { display: block; font-size: 11px; color: var(--muted); }
.quest-list .done { opacity: 0.6; }
.quest-detail h3 { font-family: 'Cinzel', serif; color: var(--gold-2); margin: 0 0 8px; }
.quest-detail p { color: #e6dccb; line-height: 1.5; font-size: 14px; }
.obj { padding: 6px 10px; border-radius: 8px; background: rgba(0, 0, 0, 0.22); margin-bottom: 4px; font-size: 14px; font-weight: 700; }
.obj.done { color: var(--good); }
.rewards { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.reward { display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: rgba(0, 0, 0, 0.25); font-size: 13px; font-weight: 800; }
.reward img { width: 22px; height: 22px; }

/* map */
.map-layout { display: grid; grid-template-columns: 1fr 220px; gap: 16px; }
.map-canvas-wrap { position: relative; border-radius: 12px; overflow: hidden; border: 2px solid var(--gold); aspect-ratio: 1; background: #24331f; }
.map-canvas-wrap canvas { width: 100%; height: 100%; display: block; }
.areas .area { padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.22); margin-bottom: 6px; font-size: 13px; }
.areas .area b { display: block; font-family: 'Cinzel', serif; font-size: 14px; }
.areas .area.here { border: 1px solid var(--gold-2); }
.areas .area.locked { opacity: 0.5; }
.legend { font-size: 12px; color: var(--muted); line-height: 1.8; margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* shop */
.shop-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.shop-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; background: rgba(0, 0, 0, 0.22); margin-bottom: 6px; }
.shop-row img { width: 36px; height: 36px; }
.shop-row .n { flex: 1; font-weight: 800; font-size: 13px; }
.shop-row .n small { display: block; color: var(--muted); font-weight: 700; }
.shop-row .p { font-weight: 900; color: #ffe066; font-size: 13px; white-space: nowrap; }
.shop-row .btn { padding: 6px 10px; }

/* settings */
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); font-weight: 700; }
.set-row input[type=range] { width: 180px; accent-color: var(--gold); }
.seg { display: inline-flex; border: 1px solid rgba(227, 178, 60, 0.5); border-radius: 9px; overflow: hidden; }
.seg button { padding: 6px 12px; border: 0; background: transparent; font-weight: 800; font-size: 13px; }
.seg button.sel { background: var(--gold); color: #2a1a08; }
.toggle { width: 46px; height: 26px; border-radius: 99px; border: 1px solid rgba(227, 178, 60, 0.5); background: rgba(0, 0, 0, 0.35); position: relative; padding: 0; }
.toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #9a93a8; transition: left 0.15s, background 0.15s; }
.toggle.on { background: rgba(227, 178, 60, 0.35); }
.toggle.on::after { left: 22px; background: var(--gold-2); }
textarea.savebox { width: 100%; height: 90px; border-radius: 10px; background: rgba(0, 0, 0, 0.35); color: var(--cream); border: 1px solid rgba(227, 178, 60, 0.4); padding: 8px; font-size: 11px; font-family: ui-monospace, monospace; resize: none; user-select: text; -webkit-user-select: text; }
.pause-menu { display: flex; flex-direction: column; gap: 10px; align-items: center; padding: 8px 0; }
.controls-help { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; }
.controls-help kbd { display: inline-block; min-width: 24px; text-align: center; padding: 1px 6px; border-radius: 5px; background: rgba(227, 178, 60, 0.25); border: 1px solid rgba(227, 178, 60, 0.6); font-weight: 900; font-family: 'Nunito'; }

/* ----------------------------------------------------------------- dialogue */
#dialogue { position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translateX(-50%); width: min(680px, 94vw); z-index: 25; padding: 16px 20px 14px; border-radius: 16px; background: linear-gradient(180deg, #fbf1d8, #efdcb2); color: var(--parch-ink); border: 2px solid #b8862a; box-shadow: 0 0 0 4px rgba(59, 36, 20, 0.85), 0 18px 40px rgba(0, 0, 0, 0.5); animation: win-in 0.2s; }
.dlg-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.dlg-name { font-family: 'Cinzel', serif; font-weight: 900; font-size: 18px; color: #7a3a10; }
.dlg-title { font-size: 12px; font-weight: 800; color: #9a7a50; text-transform: uppercase; letter-spacing: 0.1em; }
.dlg-text { font-size: 16px; line-height: 1.5; min-height: 48px; font-weight: 600; }
.dlg-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dlg-options button { padding: 8px 14px; border-radius: 10px; border: 1px solid #b8862a; background: linear-gradient(180deg, #fff8e6, #f0dcae); color: var(--parch-ink); font-weight: 800; font-size: 14px; }
.dlg-options button:hover { background: #fff3cc; }
.dlg-options button.q::before { content: '! '; color: #c98f22; font-weight: 900; }
.dlg-options button.q.ready::before { content: '? '; color: #2f8a5b; }
.dlg-rewards { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.dlg-rewards .reward { background: rgba(122, 58, 16, 0.12); }

/* ----------------------------------------------------------------- death / fade / modal / tooltip */
#death-screen { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, rgba(60, 10, 20, 0.45), rgba(10, 4, 8, 0.85)); animation: fadein 1.2s; }
.death-inner { text-align: center; padding: 20px; }
.death-inner h1 { font-family: 'Cinzel', serif; font-size: clamp(32px, 6vw, 56px); color: #ffb0b0; text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8); margin: 0 0 8px; }
.death-inner p { color: var(--cream); margin-bottom: 22px; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
#fade { position: fixed; inset: 0; background: #0a0d18; z-index: 50; opacity: 0; pointer-events: none; transition: opacity 0.35s; }
#fade.on { opacity: 1; pointer-events: auto; }
#modal-layer { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgba(6, 8, 18, 0.55); }
.modal { width: min(460px, 92vw); padding: 20px; border-radius: 16px; background: linear-gradient(180deg, rgba(30, 38, 66, 0.98), rgba(18, 24, 44, 0.98)); border: 1px solid rgba(227, 178, 60, 0.6); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
.modal h3 { font-family: 'Cinzel', serif; color: var(--gold-2); margin: 0 0 10px; }
.modal p { color: #e6dccb; line-height: 1.5; font-size: 14px; }
.modal .row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.modal .row .btn { min-width: 0; }
#tooltip { position: fixed; z-index: 70; pointer-events: none; max-width: 260px; padding: 10px 12px; border-radius: 10px; background: rgba(14, 18, 34, 0.96); border: 1px solid rgba(227, 178, 60, 0.6); font-size: 13px; box-shadow: var(--shadow); }
#tooltip h4 { margin: 0 0 4px; font-family: 'Cinzel', serif; font-size: 14px; }
#tooltip .meta { color: var(--muted); font-size: 11px; font-weight: 800; }
#tooltip .stats { color: var(--good); font-weight: 800; margin-top: 4px; }
.noscript { color: #fff; }

/* ----------------------------------------------------------------- touch controls */
#touch-controls { display: none; }
body.touch #touch-controls { display: block; }
body.touch #hotbar, body.touch #menu-buttons { display: none; }
#joystick { position: absolute; left: calc(26px + var(--safe-l)); bottom: calc(34px + var(--safe-b)); width: 136px; height: 136px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03) 60%, rgba(0, 0, 0, 0.15)); border: 2px solid rgba(227, 178, 60, 0.45); touch-action: none; }
#joy-knob { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffe7a8, #c98f22); border: 2px solid #3b2414; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); }
#action-cluster { position: absolute; right: calc(18px + var(--safe-r)); bottom: calc(28px + var(--safe-b)); width: 230px; height: 210px; }
.act { position: absolute; border-radius: 50%; border: 2px solid rgba(227, 178, 60, 0.85); background: #1a2040 center/cover no-repeat; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); padding: 0; overflow: hidden; touch-action: none; }
.act.big { width: 92px; height: 92px; right: 6px; bottom: 6px; border-width: 3px; }
.act.skill { width: 60px; height: 60px; }
.act.skill[data-slot='0'] { right: 112px; bottom: 4px; }
.act.skill[data-slot='1'] { right: 100px; bottom: 76px; }
.act.skill[data-slot='2'] { right: 34px; bottom: 112px; }
.act.skill.small { width: 50px; height: 50px; right: 162px; bottom: 116px; }
.act.talk { width: 76px; height: 40px; border-radius: 99px; right: 120px; bottom: 156px; font-family: 'Cinzel', serif; font-weight: 900; background: linear-gradient(180deg, #f2c75c, #c98f22); color: #2a1a08; }
.act:active { transform: scale(0.94); }
.act .cd { position: absolute; inset: 0; background: conic-gradient(rgba(5, 8, 20, 0.78) var(--p, 0%), transparent 0); }
.act .cdt, .act .count { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 900; text-shadow: 0 1px 3px #000; }
.act .count { inset: auto 4px 4px auto; font-size: 12px; }
.act.locked { filter: grayscale(1) brightness(0.5); }
#touch-menu { position: absolute; top: calc(96px + var(--safe-t)); left: calc(12px + var(--safe-l)); display: flex; gap: 6px; }
#touch-menu button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(227, 178, 60, 0.6); background: rgba(14, 18, 34, 0.82); padding: 7px; }
#touch-menu svg, #menu-buttons svg { width: 100%; height: 100%; fill: none; stroke: var(--gold-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

body.touch #player-frame .portrait { width: 56px; height: 56px; }
body.touch .pf-bars { width: 160px; }
body.touch #minimap-wrap { width: 118px; }
body.touch #minimap { width: 118px; height: 118px; }
body.touch .mm-n { transform-origin: 50% 55px; }
body.touch .mm-zoom { display: none; }
body.touch #quest-tracker { top: calc(150px + var(--safe-t)); width: 190px; }
body.touch #loot-feed { bottom: calc(250px + var(--safe-b)); }
body.touch #interact-prompt { display: none; }
body.touch #cast-bar { bottom: calc(250px + var(--safe-b)); }

/* small / portrait screens */
@media (max-width: 760px) {
  .create-layout { flex-direction: column; justify-content: flex-start; align-items: stretch; overflow-y: auto; touch-action: pan-y; }
  #screen-create { background: linear-gradient(180deg, rgba(10, 14, 30, 0.2) 0%, rgba(10, 14, 30, 0.2) 38%, rgba(10, 14, 30, 0.85) 60%); }
  .create-left { order: 2; width: 100%; max-height: none; }
  .create-right { order: 1; width: 100%; margin-top: 34vh; padding: 12px 14px; }
  .create-right p { display: none; }
  .inv-layout, .char-layout, .quest-layout, .map-layout, .shop-layout { grid-template-columns: 1fr; }
  .bag { grid-template-columns: repeat(6, 1fr); }
  .window { max-height: 94vh; border-radius: 14px; }
  #target-frame { top: calc(80px + var(--safe-t)); width: 56vw; }
  body.touch #target-frame { top: calc(146px + var(--safe-t)); width: 60vw; }
  body.touch #quest-tracker { display: none; }
  body.touch #quest-tracker.show-mobile { display: block; }
  .pf-name { font-size: 13px; }
  #toasts { top: calc(120px + var(--safe-t)); }
}
@media (max-height: 480px) and (orientation: landscape) {
  .window { max-height: 96vh; }
  .window-body { padding: 10px 14px; }
  body.touch #quest-tracker { top: calc(140px + var(--safe-t)); max-height: 30vh; overflow: hidden; }
  body.touch #touch-menu { top: auto; bottom: calc(176px + var(--safe-b)); left: calc(14px + var(--safe-l)); }
  body.touch #joystick { width: 118px; height: 118px; bottom: calc(18px + var(--safe-b)); }
  body.touch #action-cluster { bottom: calc(12px + var(--safe-b)); transform: scale(0.88); transform-origin: right bottom; }
  body.touch #loot-feed { right: calc(232px + var(--safe-r)); bottom: calc(14px + var(--safe-b)); }
  body.touch #target-frame { top: calc(10px + var(--safe-t)); width: 34vw; }
  #toasts { top: calc(56px + var(--safe-t)); }
  .create-left { max-height: calc(100vh - 24px); }
}

/* M1.1 — Reduce Motion: no sliding/scaling UI animations */
body.reduce-motion .window, body.reduce-motion #dialogue, body.reduce-motion .toast, body.reduce-motion .loot { animation: none !important; }
body.reduce-motion .btn:hover, body.reduce-motion .btn:active { transform: none; }
@media (prefers-reduced-motion: reduce) { .window, #dialogue, .toast, .loot { animation: none !important; } }
