/* ══════════════════════════════════════════
   Reset + Variables
══════════════════════════════════════════ */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #e63946;
  --primary-dark:  #c1121f;
  --bg:            #f4f4f6;
  --surface:       #ffffff;
  --border:        #e2e4e9;
  --text:          #1a1a2e;
  --text-muted:    #7a7d8a;
  --shadow:        0 2px 16px rgba(0,0,0,0.08);
  --radius:        16px;
  --nav-h:         64px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}

/* ══════════════════════════════════════════
   Header
══════════════════════════════════════════ */
.app-header {
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(230,57,70,0.3);
}
.app-logo { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }
.app-title { font-size: 1.2rem; font-weight: 800; line-height: 1.1; }
.app-tagline { font-size: 0.72rem; opacity: 0.8; margin-top: 2px; }

/* ══════════════════════════════════════════
   Tool Sections
══════════════════════════════════════════ */
.tool-section { display: none; }
.tool-section.active { display: block; }

.tool-h1 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 12px 16px 0;
  letter-spacing: 0.01em;
}
.tool-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 4px 16px 0;
  margin: 0;
  line-height: 1.4;
}

/* ══════════════════════════════════════════
   Bottom Navigation
══════════════════════════════════════════ */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 500;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}
.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.15s;
  padding: 6px 4px;
}
.nav-btn.active { color: var(--primary); }
.nav-icon { font-size: 1.5rem; line-height: 1; }
.nav-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }

/* ══════════════════════════════════════════
   Vòng quay — Preset Chips
══════════════════════════════════════════ */
.preset-row {
  display: flex;
  gap: 8px;
  padding: 14px 16px 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.preset-row::-webkit-scrollbar { display: none; }
.preset-chip {
  flex-shrink: 0;
  padding: 9px 18px;
  border-radius: 24px;
  border: 2px solid var(--border);
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text);
  transition: all 0.15s;
  white-space: nowrap;
}
.preset-chip:hover  { border-color: var(--primary); color: var(--primary); }
.preset-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ══════════════════════════════════════════
   Vòng quay — Wheel
══════════════════════════════════════════ */
.wheel-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 16px;
}
.wheel-container {
  position: relative;
  width: min(88vw, 380px);
  height: min(88vw, 380px);
  flex-shrink: 0;
}
#wheelCanvas {
  width: 100%;
  height: 100%;
  display: block;
}
.pointer {
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-right: 28px solid var(--primary);
  filter: drop-shadow(-2px 0 4px rgba(0,0,0,0.25));
  z-index: 10;
}
.spin-hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 88px; height: 88px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 3px 16px rgba(0,0,0,0.22);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  z-index: 10;
  transition: transform 0.15s, box-shadow 0.15s;
}
.spin-hub:hover { transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 4px 20px rgba(0,0,0,0.28); }
.spin-hub:active { transform: translate(-50%, -50%) scale(0.96); }
.hub-icon { font-size: 1.5rem; color: var(--primary); line-height: 1; }
.spin-hub span:last-child { font-size: 0.62rem; font-weight: 900; color: var(--primary); letter-spacing: 0.08em; }
.spin-hub.spinning { animation: hubPulse 0.4s ease-in-out infinite alternate; }
@keyframes hubPulse {
  from { box-shadow: 0 3px 16px rgba(230,57,70,0.3); }
  to   { box-shadow: 0 3px 28px rgba(230,57,70,0.7); }
}

/* ══════════════════════════════════════════
   Vòng quay — Entry Panel
══════════════════════════════════════════ */
.entry-panel { padding: 4px 16px 0; }
.add-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.add-row input {
  flex: 1;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.add-row input:focus { border-color: var(--primary); }
.btn-add {
  width: 46px; height: 46px;
  border-radius: 12px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.1s;
}
.btn-add:active { transform: scale(0.93); }

.entry-list {
  max-height: 200px;
  overflow-y: auto;
  border-radius: 10px;
  padding: 4px 0;
}
.entry-list::-webkit-scrollbar { width: 4px; }
.entry-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.entry-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  transition: background 0.12s;
}
.entry-item:hover { background: #f8f8fb; }
.entry-color { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.entry-text {
  flex: 1; font-size: 0.92rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.entry-text[contenteditable="true"] {
  outline: none;
  border-bottom: 1.5px dashed var(--primary);
  white-space: normal;
}
.entry-actions { display: flex; gap: 4px; }

.entry-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0 4px;
  flex-wrap: wrap;
}
.count-badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 2px 8px;
  min-width: 28px;
  text-align: center;
}

/* ══════════════════════════════════════════
   Accordion
══════════════════════════════════════════ */
.accordion {
  margin: 10px 16px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.accordion:last-child { margin-bottom: 16px; }
.accordion summary {
  list-style: none;
  padding: 13px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion[open] summary {
  border-bottom: 1px solid var(--border);
}
.accordion-body {
  padding: 12px 16px;
}
.accordion-body .btn-ghost { margin-bottom: 8px; }

/* ══════════════════════════════════════════
   Tool Body (dice, coin, number, cards)
══════════════════════════════════════════ */
.tool-body {
  padding: 20px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.tool-body--center { align-items: center; }

/* ══════════════════════════════════════════
   Buttons
══════════════════════════════════════════ */
.btn-action {
  width: 100%;
  padding: 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: 0.02em;
}
.btn-action:hover  { background: var(--primary-dark); }
.btn-action:active { transform: scale(0.97); }
.btn-action:disabled { background: #c0c4cc; cursor: not-allowed; }
.btn-action--flex { flex: 1; width: auto; }

.btn-secondary {
  padding: 14px 20px;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn-secondary:hover  { border-color: var(--primary); color: var(--primary); }
.btn-secondary:active { transform: scale(0.97); }

.btn-ghost {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.btn-ghost:hover { color: var(--primary); background: rgba(230,57,70,0.06); }
.btn-sm { font-size: 0.78rem; padding: 4px 10px; }

/* Modal buttons */
.btn { padding: 10px 20px; border-radius: 10px; border: none; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: none; border: 2px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: none; border: 2px solid #ffc9cc; color: var(--primary); font-size: 0.82rem; padding: 5px 12px; border-radius: 8px; cursor: pointer; }
.btn-danger:hover { background: var(--primary); color: #fff; }
.icon-btn { background: none; border: none; cursor: pointer; font-size: 0.85rem; color: var(--text-muted); padding: 2px 6px; border-radius: 6px; }
.icon-btn.danger:hover { color: var(--primary); }

/* ══════════════════════════════════════════
   Count selectors (dice / number / cards)
══════════════════════════════════════════ */
.count-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.count-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.dice-count-selector { display: flex; gap: 8px; flex-wrap: wrap; }

.dice-count-btn,
.draw-count-btn,
.number-count-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  font-size: 1rem; font-weight: 700;
  cursor: pointer;
  color: var(--text-muted);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.dice-count-btn:hover,
.draw-count-btn:hover,
.number-count-btn:hover { border-color: var(--primary); color: var(--primary); }
.dice-count-btn.active,
.draw-count-btn.active,
.number-count-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
/* Larger for number & cards */
#tool-number .number-count-btn,
#tool-cards  .draw-count-btn {
  width: 56px; height: 56px;
  font-size: 1.2rem;
  border-radius: 12px;
}

.deck-badge {
  margin-left: auto;
  background: #e9ecef;
  border-radius: 10px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════
   3D Dice
══════════════════════════════════════════ */
.dice-tray {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  min-height: 110px;
  flex-wrap: wrap;
}
.die-scene {
  perspective: 320px;
  width: 88px; height: 88px;
}
.die-3d {
  width: 88px; height: 88px;
  position: relative;
  transform-style: preserve-3d;
}
.die-face {
  position: absolute;
  width: 88px; height: 88px;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff 0%, #f0f0f0 100%);
  border: 1.5px solid rgba(0,0,0,0.10);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.8), inset 0 -2px 4px rgba(0,0,0,0.08);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  padding: 12px; gap: 5px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.die-face .dot {
  background: radial-gradient(circle at 35% 30%, #555, #111);
  border-radius: 50%;
  width: 100%; height: 100%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.die-face span:not(.dot) { visibility: hidden; }
.face-front  { transform: rotateY(0deg)    translateZ(44px); }
.face-back   { transform: rotateY(180deg)  translateZ(44px); }
.face-right  { transform: rotateY(90deg)   translateZ(44px); }
.face-left   { transform: rotateY(-90deg)  translateZ(44px); }
.face-top    { transform: rotateX(90deg)   translateZ(44px); }
.face-bottom { transform: rotateX(-90deg)  translateZ(44px); }
.die-scene::after {
  content: '';
  display: block;
  width: 70px; height: 10px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.2) 0%, transparent 70%);
  margin: 6px auto 0;
  border-radius: 50%;
}
.dice-total {
  font-size: 1.6rem; font-weight: 700;
  color: var(--text); min-height: 2rem; text-align: center;
}
.dice-total strong { color: var(--primary); font-size: 2rem; }
.history-die {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  background: var(--primary); color: #fff;
  border-radius: 5px; font-size: 0.8rem; font-weight: 700; margin-right: 3px;
}
.history-dice-faces { display: flex; align-items: center; flex: 1; flex-wrap: wrap; gap: 2px; }
.history-dice-total { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }

/* ══════════════════════════════════════════
   Coin
══════════════════════════════════════════ */
.coin-wrapper { perspective: 900px; }
.coin {
  width: 180px; height: 180px;
  position: relative;
  transform-style: preserve-3d;
}
.coin-face {
  position: absolute; inset: 0;
  border-radius: 50%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(0,0,0,0.28);
  user-select: none;
}
.coin-face img {
  width: 100%; height: 100%;
  display: block; object-fit: cover; border-radius: 50%;
}
.coin-tails { transform: rotateY(180deg); }
.coin-result {
  font-size: 2rem; font-weight: 800;
  min-height: 2.5rem; text-align: center;
  transition: color 0.2s;
}
.coin-result[data-result="heads"] { color: #f5a800; }
.coin-result[data-result="tails"] { color: #757575; }
@keyframes popIn {
  0%   { transform: scale(0.5); opacity: 0; }
  70%  { transform: scale(1.15); }
  100% { transform: scale(1);   opacity: 1; }
}
.coin-result.pop { animation: popIn 0.35s ease-out forwards; }
.coin-history-icon { font-size: 1rem; flex-shrink: 0; }

/* ══════════════════════════════════════════
   Number Picker
══════════════════════════════════════════ */
.number-pickers { display: flex; flex-direction: column; gap: 12px; }
.number-picker-row { display: flex; align-items: center; gap: 12px; }
.picker-label { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); width: 44px; flex-shrink: 0; }
.picker-range { display: flex; align-items: center; gap: 8px; }
.picker-input {
  width: 72px; padding: 8px 10px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 1rem; text-align: center;
  background: var(--surface); color: var(--text);
  transition: border-color 0.15s; outline: none;
}
.picker-input:focus { border-color: var(--primary); }
.picker-dash { color: var(--text-muted); font-size: 1.1rem; }
.number-slots {
  display: flex; gap: 16px;
  justify-content: center; align-items: center; min-height: 90px; flex-wrap: wrap;
}
.slot-box {
  width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800;
  font-variant-numeric: tabular-nums;
  border-radius: 14px;
  background: var(--bg);
  border: 2.5px solid var(--border);
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}
.slot-box.slot-done {
  border-color: var(--primary); color: var(--primary);
  background: rgba(230,57,70,0.06);
}
.settings-row {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 12px; font-size: 0.9rem;
}
.settings-row label { font-weight: 500; }
.settings-row select {
  padding: 6px 10px; border: 1.5px solid var(--border);
  border-radius: 8px; background: var(--bg);
  font-size: 0.9rem; outline: none;
}

/* ══════════════════════════════════════════
   Card Deck
══════════════════════════════════════════ */
.cards-actions { display: flex; gap: 10px; }
.cards-tray {
  display: flex; flex-wrap: wrap; gap: 10px;
  min-height: 130px; padding: 4px 0;
}
.card-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: default; transition: transform 0.15s;
}
.card-item:hover { transform: translateY(-4px); }
.card-flip { width: 72px; height: 104px; perspective: 500px; }
.card-flip-inner {
  width: 100%; height: 100%;
  position: relative; transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-flip-inner.flipped { transform: rotateY(180deg); }
.card-flip-inner.no-transition { transition: none; }
.card-flip-back,
.card-flip-front {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.card-flip-front { transform: rotateY(180deg); }
.card-flip-back img,
.card-flip-front img {
  width: 100%; height: 100%; display: block;
  border-radius: 5px; box-shadow: 0 2px 8px rgba(0,0,0,0.18); object-fit: cover;
}
.card-item-name { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); }
.card-item-name.red { color: #c1121f; }
@keyframes cardSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card-new { animation: cardSlideIn 0.2s ease-out both; }
.history-item--cards .history-cards { font-size: 0.95rem; font-weight: 700; letter-spacing: 0.5px; }

/* ══════════════════════════════════════════
   History List
══════════════════════════════════════════ */
.history-list { max-height: 240px; overflow-y: auto; }
.history-list::-webkit-scrollbar { width: 4px; }
.history-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.history-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.history-item:last-child { border-bottom: none; }
.history-num { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; min-width: 28px; }
.history-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.history-name { font-weight: 500; }
.empty-msg { color: var(--text-muted); font-size: 0.85rem; font-style: italic; padding: 8px 0; }

/* ══════════════════════════════════════════
   Modals
══════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 600; opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal {
  background: #fff; border-radius: 20px;
  padding: 36px 32px; text-align: center;
  box-shadow: 0 8px 48px rgba(0,0,0,0.28);
  transform: scale(0.88); transition: transform 0.25s;
  max-width: 360px; width: 90%;
}
.modal-overlay.show .modal { transform: scale(1); }
.winner-emoji { font-size: 3rem; line-height: 1; margin-bottom: 8px; }
.winner-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; margin-bottom: 6px; }
.winner-name { font-size: 1.9rem; font-weight: 800; color: var(--primary); word-break: break-word; margin-bottom: 24px; line-height: 1.2; }
.modal-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.import-modal .modal { text-align: left; }
.import-modal .modal h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.import-modal .modal p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 12px; }
.import-modal textarea {
  width: 100%; height: 140px;
  padding: 10px 12px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 0.9rem; font-family: inherit;
  resize: vertical; outline: none;
  transition: border-color 0.2s;
}
.import-modal textarea:focus { border-color: var(--primary); }
.import-modal .modal-actions { margin-top: 12px; justify-content: flex-end; }

/* ══════════════════════════════════════════
   Confetti
══════════════════════════════════════════ */
#confettiCanvas { position: fixed; inset: 0; pointer-events: none; z-index: 550; }

/* ══════════════════════════════════════════
   Desktop (≥ 800px) — two-column wheel
══════════════════════════════════════════ */
@media (min-width: 800px) {
  body { max-width: 960px; margin: 0 auto; }

  .bottom-nav {
    position: static;
    height: auto;
    border-top: none;
    border-bottom: 1px solid var(--border);
    box-shadow: none;
    padding: 0 16px;
  }
  .nav-btn {
    flex-direction: row;
    gap: 8px;
    padding: 14px 20px;
    border-bottom: 3px solid transparent;
    font-size: 0.9rem;
  }
  .nav-btn.active { border-bottom-color: var(--primary); }
  .nav-icon { font-size: 1.1rem; }
  .nav-label { font-size: 0.9rem; text-transform: none; letter-spacing: 0; }
  body { padding-bottom: 0; }

  #tool-wheel.active {
    display: grid;
    grid-template-columns: min(44vw, 420px) 1fr;
    column-gap: 28px;
    padding: 16px 16px 0;
    align-items: start;
  }
  /* Column 1: wheel only — starts at row 1, no gap above */
  #tool-wheel .wheel-wrap  { grid-column: 1; grid-row: 1 / 5; padding: 0; justify-content: flex-start; align-self: start; }
  /* Column 2: presets → entry panel → accordions */
  #tool-wheel .preset-row  { grid-column: 2; grid-row: 1; padding: 0 0 10px; }
  #tool-wheel .entry-panel { grid-column: 2; grid-row: 2; padding: 0; }
  #tool-wheel .accordion:nth-of-type(1) { grid-column: 2; grid-row: 3; margin-left: 0; margin-right: 0; }
  #tool-wheel .accordion:nth-of-type(2) { grid-column: 2; grid-row: 4; margin-left: 0; margin-right: 0; }

  .accordion { margin: 10px 0 0; }
  .wheel-container { width: min(44vw, 420px); height: min(44vw, 420px); }
}
