#map-categories { display:flex;gap:5px; }
#map-categories button { min-height:34px;font-size:12px;padding:5px 11px; }
#map-categories button[aria-pressed="true"] { background:#365847;color:#fff2c9;border-color:#71957c; }
.android-app #maps[data-group="hidden"] .map-grid { grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:minmax(0,1fr);padding-bottom:28px; }
.android-app #maps[data-group="hidden"] .map-info { display:grid;grid-template-columns:minmax(0,1fr);gap:3px;align-content:center;padding:7px; }
.android-app #maps[data-group="hidden"] .map-info small { font-size:11px;white-space:normal; }
.hidden-first-reward { color:#476c58; }
.map-art.starlight { background:linear-gradient(145deg,#525780,#a8b5ce); }
.map-art.lava { background:linear-gradient(145deg,#a54b36,#e4a467); }
.map-art.aurora { background:linear-gradient(145deg,#7cabc2,#d1ece5); }
#relic-items { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px; }
#relic-items .relic-layout { grid-template-columns:100px minmax(0,1fr);gap:10px;padding:12px;min-height:180px; }
#relic-items #relic-art canvas { width:100px; }
#relic-items h3 { font-size:19px; }
#relic-items p { font-size:12px;line-height:1.45; }
#relic-items strong { font-size:12px; }
#relic-items button { min-height:36px;padding:5px 9px;font-size:12px; }
.judgement-emblem { display:grid;place-items:center;width:90px;height:104px;border-radius:27px;background:radial-gradient(circle,#fffbe6 0,#ebd491 40%,#8299bd 70%,#4c5476);border:2px solid #e4d5aa;color:#fffbe2;font-size:65px;box-shadow:0 0 18px #c2dced; }
.creation-relic { background:linear-gradient(120deg,#e5ebed,#e4d7af,#edf2e8); }
#memories-dialog { box-sizing:border-box;width:min(860px,95vw);max-width:95vw;max-height:94dvh;overflow:hidden;padding:11px 16px;border:2px solid #9aa9b8;border-radius:19px;background:#263745;color:#f4ead1; }
#memories-dialog::backdrop { background:#102435c7;backdrop-filter:blur(5px); }
#memories-dialog header { display:flex;align-items:center;justify-content:space-between;gap:12px; }
#memories-dialog h2 { margin:0 0 4px;font-size:21px;color:#ffde99; }
#memories-dialog header small { color:#c6d7d9;font-size:10px; }
#memories-dialog .quiet { min-height:31px;padding:4px 11px;font-size:12px;background:#405463;color:#fff0c7;border-color:#8faaa8; }
#memories-chapters { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:8px 0; }
#memories-chapters button[aria-pressed="true"] { background:#779383;border-color:#d1e8b8; }
#memories-canvas { display:block;width:100%;height:clamp(105px,38dvh,210px);background:#324851;border-radius:12px; }
#memories-caption { min-height:32px;font-size:13px;line-height:1.45;margin:7px 0;color:#e7ecd8; }
#memories-controls { display:flex;align-items:center;gap:8px; }
.memory-progress { height:6px;flex:1;background:#4a616e;border-radius:8px;overflow:hidden; }
.memory-progress i { display:block;width:0;height:100%;background:#e7d29a;border-radius:inherit; }
#campaign-memories { white-space:nowrap; }
@media (orientation:landscape) and (max-width:740px) {
  #relic-items .relic-layout { grid-template-columns:65px minmax(0,1fr);gap:7px;padding:8px; }
  #relic-items #relic-art canvas { width:65px; }
  .judgement-emblem { width:60px;height:76px;font-size:44px;border-radius:18px; }
  #relic-items h3 { font-size:16px;margin-bottom:5px; }
  #relic-items p { font-size:11px; }
  #map-categories button { font-size:11px;padding:4px 8px; }
  #memories-dialog { padding:9px 12px; }
  #memories-chapters .quiet { font-size:11px;padding:3px; }
}
@media (orientation:portrait) and (max-width:600px) {
  #relic-items { grid-template-columns:1fr; }
  #memories-chapters { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
