/* ── Akimi Islands — pop-up panels ────────────────────────────────────────
   One reusable rounded panel. Settings uses it now; quests, the shop, the
   avatar maker and every mini-game will reuse the same shell later so the
   game always feels like one thing.
   ───────────────────────────────────────────────────────────────────────── */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(11, 34, 46, .5);
  backdrop-filter: blur(5px);
}
.scrim.on { display: grid; animation: fade-in .25s ease both; }
@keyframes fade-in { from { opacity: 0; } }

.panel {
  width: min(460px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--cream);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px 26px 22px;
  animation: panel-in .4s var(--ease) both;
}
@keyframes panel-in { from { opacity: 0; transform: translateY(26px) scale(.94); } }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 6px;
}
.panel-title { font-size: 26px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.panel-note  { font-size: 16px; color: var(--ink-soft); margin-bottom: 18px; }

.rows { display: flex; flex-direction: column; gap: 12px; }

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  min-height: var(--tap);
}
.row-label { font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.row-sub   { font-size: 14px; color: var(--ink-soft); font-weight: 400; }

/* Chunky on/off switch — big enough for a small finger */
.switch {
  flex: none;
  width: 72px; height: 40px;
  border: none;
  border-radius: var(--r-pill);
  background: rgba(27, 42, 56, .18);
  cursor: pointer;
  position: relative;
  transition: background .22s ease;
}
.switch::after {
  content: '';
  position: absolute;
  top: 4px; left: 4px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease);
}
.switch[aria-checked="true"] { background: var(--mint); }
.switch[aria-checked="true"]::after { transform: translateX(32px); }

/* Segmented picker — used for graphics quality */
.segments { display: flex; gap: 6px; background: rgba(27,42,56,.08); padding: 5px; border-radius: var(--r-pill); }
.segment {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 9px 16px;
  border-radius: var(--r-pill);
  cursor: pointer;
  min-height: 40px;
  transition: background .2s ease, color .2s ease;
}
.segment[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

/* A row that goes somewhere, rather than a row with a switch on it. */
.row--link { text-decoration: none; color: inherit; cursor: pointer; }
.row--link:hover { background: #F4FBF7; }
.row-go { font-size: 24px; color: var(--ink-soft); flex: none; }

.panel-foot { margin-top: 20px; display: flex; justify-content: center; }

/* ── Title screen (index.html) ────────────────────────────────────────── */

.title-screen {
  position: fixed;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  text-align: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 50% 118%, #FFE9B8 0%, transparent 55%),
    linear-gradient(180deg, #5EC8EE 0%, #8FE0F5 52%, #BDF0D8 100%);
}
.title-mark { font-size: 92px; animation: bobble 3s ease-in-out infinite; }
.title-name {
  font-size: clamp(40px, 9vw, 66px);
  font-weight: 700;
  color: #fff;
  letter-spacing: .5px;
  text-shadow: 0 5px 0 #2E9DC4, 0 12px 32px rgba(11, 60, 80, .4);
}
.title-tag { font-size: clamp(17px, 3.4vw, 21px); color: #0E4258; max-width: 30ch; margin-bottom: 12px; }
.title-actions { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.title-foot { margin-top: 20px; font-size: 14px; color: #0E4258; opacity: .75; }
