/* ===========================================================
   soft.css — soft, rounded corners everywhere

   Loaded last, so it wins over every other stylesheet. One scale:
     --r-sm  7px   small bits: kbd keys, tiny tags, progress bars
     --r-btn 6px   buttons, fields, segmented switches (just slightly soft)
     --r    10px   menu rows, toasts, small tiles (every other var(--r))
     --r-lg 16px   panels and cards
     --r-xl 22px   popups, the menu drawer, big game boards
   The old square corner brackets on panels become curved accents
   that follow the new corners. Delete this file's <link> to go back.
   =========================================================== */

:root {
  --r-sm: 7px;
  --r: 10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-btn: 6px;      /* buttons, fields, switches: just slightly soft */
  /* depth that reads on dark and light themes alike */
  --soft-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px -18px rgba(0, 0, 0, .7);
}

/* ---------- panels and cards ---------- */
.panel {
  border-radius: var(--r-lg);
  box-shadow: var(--soft-shadow);
}
/* the corner accents now curve with the corner instead of making a square L */
.panel::before, .panel::after {
  width: 22px; height: 22px;
  border-color: var(--a-line);
}
.panel::before { border-top-left-radius: var(--r-lg); }
.panel::after  { border-bottom-right-radius: var(--r-lg); }

/* ---------- controls ---------- */
/* buttons and fields: only slightly rounded, so they read as controls,
   not as more cards (his call: less curve than the panels) */
.btn { border-radius: var(--r-btn); }
.btn-sm { border-radius: 5px; }
.input, select.input, textarea.input { border-radius: var(--r-btn); }
.segmented { border-radius: var(--r-btn); }
.chip, .beta-chip, .hl-lvl, .hl-score { border-radius: 999px; }
kbd, .pb-fine kbd { border-radius: var(--r-sm); }
input[type="color"] { border-radius: 8px; overflow: hidden; }
input[type="range"] { accent-color: var(--a); }

/* ---------- the menu bar and the drawer ---------- */
.rail-btn { border-radius: 8px; }
.rail-btn[aria-current="page"]::before { border-radius: 2px; }
.drawer {
  border-top-left-radius: var(--r-xl);
  border-bottom-left-radius: var(--r-xl);
}
.drawer-item { border-radius: 12px; }
.drawer-icon { border-radius: 11px; }
.drawer-search { border-radius: 12px; }

/* ---------- popups, toasts, banners ---------- */
.modal { border-radius: var(--r-xl); }
.toast { border-radius: 12px; }
.ios-install { border-radius: var(--r-xl); }
.pb-card { border-radius: var(--r-lg); }

/* ---------- page bits ---------- */
.theme-tile { border-radius: 12px; }
.theme-swatch { border-radius: 9px; overflow: hidden; }
.gm-thumb, .gm-prev { border-radius: 12px; }
.pk-canvas { border-radius: var(--r-lg); }
.pb-canvas { border-radius: var(--r-xl); }
.gm-lb-row.me { border-radius: var(--r); }
.pk-hchip { border-radius: 8px; }
.hl-form fieldset { border-radius: 12px; }
.hl-bar i { border-radius: 4px 4px 1px 1px; }
.alm-bar { border-radius: 999px; }
.shop-ribbon { border-radius: 999px; }

/* e-ink keeps it crisp: no shadows on a Kindle */
:root[data-eink="on"] .panel { box-shadow: none; }

/* a little room between a menu label and its Beta tag */
.drawer-text b .beta-chip { margin-left: 7px; vertical-align: 1px; }
