/* Archon NEO – styles. System fonts only: no third-party requests. */
:root {
  --bg: #07060f;
  --light: #ffd76a;
  --dark: #b48cff;
  --accent: #5ff7e6;
  --panel: rgba(16, 12, 34, 0.94);
  --line: rgba(255, 255, 255, 0.13);
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, "New York", Georgia, Cambria, "Noto Serif", "Times New Roman", serif;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* No scrolling, rubber-banding, zoom or text selection (iOS Safari & Android Chrome). */
html, body {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--bg);
  color: #ece8ff;
  font-family: var(--font);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#safe-probe {
  position: fixed; top: 0; left: 0; width: 0; height: 0;
  visibility: hidden; pointer-events: none;
  padding: var(--sat) var(--sar) var(--sab) var(--sal);
}
.hidden { display: none !important; }
.noscript { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; z-index: 50; background: var(--bg); }

button { font: inherit; color: inherit; border: none; background: none; touch-action: manipulation; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a { color: var(--accent); }

/* ---------- HUD ---------- */
.hud {
  position: fixed; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; gap: 10px;
  padding-left: calc(var(--sal) + 12px);
  padding-right: calc(var(--sar) + 12px);
  pointer-events: none;
}
.hud > * { pointer-events: auto; }
#hud-top { top: 0; height: calc(var(--sat) + 56px); padding-top: calc(var(--sat) + 8px); padding-bottom: 8px; }
#hud-bottom { bottom: 0; height: calc(var(--sab) + 100px); padding-top: 10px; padding-bottom: calc(var(--sab) + 10px); align-items: stretch; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 13px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line);
  font-size: 19px; display: grid; place-items: center;
}
.icon-btn:active { background: rgba(255, 255, 255, 0.18); }

#turn-label { flex: 1; text-align: center; font-weight: 800; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; }
#turn-label.light { color: var(--light); text-shadow: 0 0 14px rgba(255, 200, 80, 0.6); }
#turn-label.dark { color: var(--dark); text-shadow: 0 0 14px rgba(170, 110, 255, 0.7); }

#lum { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; opacity: 0.9; }
#lum span::after { content: " ▲"; color: var(--light); }
#lum.down span::after { content: " ▼"; color: var(--dark); }
#lum-bar { display: flex; gap: 3px; }
#lum-bar i { width: 7px; height: 13px; border-radius: 3px; background: #241d40; }
#lum-bar i.on { background: linear-gradient(#fff6d0, #ffd76a); box-shadow: 0 0 6px rgba(255, 215, 106, 0.6); }

#info {
  flex: 1; min-width: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 9px 13px; font-size: 13.5px; line-height: 1.4; overflow: hidden;
}
#info b { font-weight: 800; letter-spacing: 0.02em; }
#info .light { color: var(--light); }
#info .dark { color: var(--dark); }
#info .muted { opacity: 0.65; }
#info .hpbar { display: inline-block; vertical-align: middle; width: 70px; height: 7px; border-radius: 4px; background: #2a2244; overflow: hidden; margin: 0 7px; }
#info .hpbar > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3dff9a, #b8ff5c); }

#btn-spell {
  width: 90px; border-radius: 16px;
  background: linear-gradient(135deg, #7b3cff, #ff3d8b);
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em; line-height: 1.7;
  box-shadow: 0 0 18px rgba(180, 80, 255, 0.55);
}
#btn-spell.cancel { background: linear-gradient(135deg, #444, #222); box-shadow: none; }
#btn-spell:active { transform: scale(0.96); }

/* ---------- Overlays ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--sat) + 14px) calc(var(--sar) + 14px) calc(var(--sab) + 14px) calc(var(--sal) + 14px);
  background: rgba(5, 3, 14, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.panel {
  width: 100%; max-width: 420px; max-height: 100%;
  display: flex; flex-direction: column; gap: 11px;
  padding: 22px 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 0 50px rgba(120, 70, 255, 0.25), inset 0 0 30px rgba(95, 247, 230, 0.04);
}
.panel.center { text-align: center; }
.panel h2 { font-size: 19px; font-weight: 800; text-align: center; color: var(--accent); letter-spacing: 0.04em; }
.panel h3 { font-size: 14px; font-weight: 800; color: var(--accent); margin: 16px 0 8px; text-transform: uppercase; letter-spacing: 0.08em; }
.panel h4 { font-size: 13px; font-weight: 800; margin: 12px 0 6px; color: #fff; }

.title {
  font-size: 44px; font-weight: 900; line-height: 1; letter-spacing: 0.08em;
  background: linear-gradient(180deg, #fff6d0 0%, #ffd76a 45%, #b48cff 58%, #6b3cff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(180, 140, 255, 0.5));
}
.title span { display: block; font-size: 20px; letter-spacing: 0.6em; margin: 8px 0 0 0.6em; }
.title.small { font-size: 28px; }
.subtitle { font-family: var(--serif); font-style: italic; font-size: 16px; opacity: 0.85; line-height: 1.45; margin-bottom: 4px; }
.hint { font-size: 11.5px; opacity: 0.5; line-height: 1.5; }
.fineprint { font-size: 11px; opacity: 0.55; line-height: 1.55; }

.btn {
  display: block; width: 100%;
  padding: 15px 12px; border-radius: 15px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.02em; line-height: 1.3;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
  transition: transform 0.08s, background 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.3; }
.btn.ghost { background: transparent; }
.btn.accent { background: linear-gradient(135deg, #1fd1c0, #2a7fff); border: none; color: #021014; }
.btn.primary-light { background: linear-gradient(135deg, #ffd76a, #ff8a1c); color: #1f1200; border: none; box-shadow: 0 0 20px rgba(255, 170, 50, 0.35); }
.btn.primary-dark { background: linear-gradient(135deg, #7b3cff, #ff3d8b); border: none; box-shadow: 0 0 20px rgba(160, 70, 255, 0.4); }
.row { display: flex; gap: 10px; }
.row .btn { flex: 1; }

.field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; }
.seg { display: flex; padding: 4px; gap: 4px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.seg button { flex: 1; padding: 9px 4px; border-radius: 10px; font-size: 14px; font-weight: 700; opacity: 0.65; }
.seg button.active { opacity: 1; background: rgba(95, 247, 230, 0.16); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(95, 247, 230, 0.4); }

.soon { text-align: left; border: 1px dashed rgba(95, 247, 230, 0.3); border-radius: 15px; padding: 11px 14px; }
.soon h2 { font-size: 11px; text-align: left; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 6px; }
.soon ul { list-style: none; display: grid; gap: 4px; font-size: 13px; opacity: 0.75; }
.soon li::before { content: "◇ "; color: var(--accent); }

.scroll {
  overflow-y: auto; touch-action: pan-y;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain; min-height: 0;
  scrollbar-width: thin; scrollbar-color: rgba(95, 247, 230, 0.35) transparent;
}
.scroll::-webkit-scrollbar { width: 4px; }
.scroll::-webkit-scrollbar-thumb { background: rgba(95, 247, 230, 0.35); border-radius: 2px; }
.rules-text { font-size: 14px; line-height: 1.55; text-align: left; -webkit-user-select: text; user-select: text; }
.rules-text p { margin-bottom: 9px; }
.rules-text b { color: var(--accent); font-weight: 700; }
.unit-row { display: flex; gap: 10px; align-items: center; margin-bottom: 7px; font-size: 13px; line-height: 1.35; }
.unit-row canvas { width: 40px; height: 40px; flex: none; }
.unit-row .light { color: var(--light); font-weight: 700; }
.unit-row .dark { color: var(--dark); font-weight: 700; }
.unit-row small { opacity: 0.65; }

#spell-list { display: flex; flex-direction: column; gap: 8px; }
.spell { text-align: left; padding: 11px 13px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.spell:active { background: rgba(255, 255, 255, 0.15); }
.spell:disabled { opacity: 0.3; }
.spell strong { display: block; font-size: 14px; font-weight: 800; color: #ff9be0; margin-bottom: 3px; }
.spell span { font-size: 12.5px; opacity: 0.8; line-height: 1.4; }

#toast {
  position: fixed; left: 50%; top: calc(var(--sat) + 66px); z-index: 20;
  transform: translate(-50%, -10px); opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none; max-width: 90vw;
  padding: 10px 16px; border-radius: 14px;
  background: rgba(10, 8, 24, 0.92); border: 1px solid rgba(95, 247, 230, 0.35);
  font-size: 14px; font-weight: 700; text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

.btn.small { padding: 11px 10px; font-size: 13.5px; }
.title.light { background: linear-gradient(180deg, #fffbe6, #ffd76a 55%, #ff9d2e); -webkit-background-clip: text; background-clip: text; }
.title.dark { background: linear-gradient(180deg, #f0e0ff, #b48cff 55%, #ff3d8b); -webkit-background-clip: text; background-clip: text; }
.link-btn { padding: 8px 4px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(236, 232, 255, 0.7); }
.link-btn:active { color: #fff; }

/* ---------- Title screen ---------- */
.splash {
  z-index: 30; cursor: pointer;
  background:
    radial-gradient(ellipse at 30% 35%, rgba(255, 190, 80, 0.16), transparent 55%),
    radial-gradient(ellipse at 70% 65%, rgba(140, 80, 255, 0.2), transparent 55%),
    rgba(5, 3, 14, 0.78);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.splash.leaving { opacity: 0; transform: scale(1.04); pointer-events: none; }
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; max-width: 420px; }
.splash-emblem { display: flex; align-items: center; justify-content: center; gap: 4px; height: 120px; }
.splash-emblem canvas { width: 112px; height: 112px; animation: float 4.5s ease-in-out infinite; }
.splash-emblem .emblem-light { filter: drop-shadow(0 0 18px rgba(255, 190, 70, 0.65)); }
.splash-emblem .emblem-dark { transform: scaleX(-1); filter: drop-shadow(0 0 18px rgba(160, 90, 255, 0.7)); animation-delay: -2.2s; }
.title.big { font-size: clamp(48px, 15vw, 68px); }
.title.big span { font-size: clamp(20px, 6vw, 26px); }
.tagline { font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.5; opacity: 0.85; max-width: 320px; }
.tap-hint {
  margin-top: 18px; font-size: 13px; font-weight: 800; letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent);
  animation: breathe 2.2s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }

/* ---------- The Legend (story intro) ---------- */
.intro { z-index: 25; padding: 0; background: rgba(4, 3, 12, 0.86); }
.intro-frame {
  position: relative; width: 100%; max-width: 560px; height: 100%;
  display: flex; flex-direction: column;
  padding: calc(var(--sat) + 8px) calc(var(--sar) + 16px) calc(var(--sab) + 12px) calc(var(--sal) + 16px);
}
.intro-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.dots { display: flex; gap: 6px; }
.dot { width: 22px; height: 22px; display: grid; place-items: center; }
.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); transition: all 0.25s; }
.dot.on::before { width: 18px; border-radius: 4px; background: var(--accent); box-shadow: 0 0 8px rgba(95, 247, 230, 0.7); }
.intro-stage { flex: 1; min-height: 0; padding: 6px 2px 18px; }
.intro-nav { display: flex; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.intro-nav .btn { flex: 1; }
.intro-nav .btn.ghost { flex: 0 0 34%; }
.intro-nav .btn.final { box-shadow: 0 0 26px rgba(255, 170, 50, 0.55); }

.page { display: flex; flex-direction: column; gap: 12px; }
.page[hidden] { display: none; }
.page.active > * { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.page.active.back > * { animation-name: rise-back; }
.page.active > *:nth-child(2) { animation-delay: 0.06s; }
.page.active > *:nth-child(3) { animation-delay: 0.12s; }
.page.active > *:nth-child(4) { animation-delay: 0.18s; }
.page.active > *:nth-child(5) { animation-delay: 0.24s; }
.page.active > *:nth-child(n+6) { animation-delay: 0.3s; }
@keyframes rise { from { opacity: 0; transform: translate(26px, 8px); } to { opacity: 1; transform: none; } }
@keyframes rise-back { from { opacity: 0; transform: translate(-26px, 8px); } to { opacity: 1; transform: none; } }

.kicker { margin-top: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent); text-align: center; }
.chapter-title {
  font-family: var(--serif); font-size: clamp(26px, 8vw, 34px); font-weight: 700; line-height: 1.12; text-align: center;
  background: linear-gradient(180deg, #fffbe6 0%, #ffd76a 50%, #c8a0ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 4px;
}
.story { font-family: var(--serif); font-size: 16.5px; line-height: 1.62; color: rgba(240, 236, 255, 0.92); -webkit-user-select: text; user-select: text; }
.story.em { font-style: italic; color: #fff; }
.story.center { text-align: center; }
.story b { color: #fff; font-weight: 700; }
.story em.lt, .ucard.light h3 { color: var(--light); font-style: normal; font-weight: 700; }
.story em.dk, .ucard.dark h3 { color: var(--dark); font-style: normal; font-weight: 700; }
.story.lead::first-letter { font-size: 2.6em; float: left; line-height: 0.9; margin: 4px 8px 0 0; color: var(--light); }

.duel { display: flex; align-items: center; justify-content: center; gap: 2px; margin-top: 4px; }
.duel .portrait:last-child { transform: scaleX(-1); }
.duel-sigil { font-size: 26px; color: var(--accent); text-shadow: 0 0 14px rgba(95, 247, 230, 0.9); animation: breathe 2.6s ease-in-out infinite; }
.glow-light { filter: drop-shadow(0 0 16px rgba(255, 190, 70, 0.6)); }
.glow-dark { filter: drop-shadow(0 0 16px rgba(160, 90, 255, 0.7)); }
.board-fig { display: grid; place-items: center; }
.board-fig canvas { border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 215, 106, 0.4), 0 0 36px rgba(140, 90, 255, 0.35); }
.arena-fig { display: flex; align-items: center; justify-content: center; gap: 8px; }
.arena-fig .portrait:last-child { transform: scaleX(-1); }
.clash { font-weight: 900; font-size: 22px; letter-spacing: 0.08em; color: #fff; text-shadow: 0 0 14px rgba(95, 247, 230, 0.9); }

.controls-fig { display: flex; justify-content: center; gap: 34px; padding: 4px 0; }
.ctl { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.ctl .joy { width: 56px; height: 56px; border-radius: 50%; border: 2px solid rgba(95, 247, 230, 0.5); background: rgba(255, 255, 255, 0.05); display: grid; place-items: center; }
.ctl .joy i { width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #b4fff8, #28b4aa); animation: nudge 2.4s ease-in-out infinite; }
.ctl .fire { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: radial-gradient(circle at 35% 35%, #ff9cc4, #c2185b); box-shadow: 0 0 16px rgba(255, 80, 150, 0.5); }
@keyframes nudge { 0%, 100% { translate: 0 0; } 25% { translate: 9px -6px; } 50% { translate: -8px 4px; } 75% { translate: 4px 8px; } }
.keys-hint { text-align: center; font-size: 11.5px; opacity: 0.5; }

.ucards { display: grid; gap: 10px; }
@media (min-width: 520px) { .ucards { grid-template-columns: 1fr 1fr; } }
.ucard {
  display: flex; gap: 12px; padding: 12px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
}
.ucard.light { box-shadow: inset 3px 0 0 rgba(255, 215, 106, 0.7); }
.ucard.dark { box-shadow: inset 3px 0 0 rgba(180, 140, 255, 0.75); }
.ucard-pic { flex: none; width: 76px; height: 76px; border-radius: 14px; display: grid; place-items: center; }
.ucard.light .ucard-pic { background: radial-gradient(circle at 50% 60%, rgba(255, 190, 70, 0.35), transparent 70%); }
.ucard.dark .ucard-pic { background: radial-gradient(circle at 50% 60%, rgba(160, 90, 255, 0.4), transparent 70%); }
.ucard.dark .portrait { transform: scaleX(-1); }
.ucard-body { min-width: 0; flex: 1; }
.ucard h3 { font-size: 16px; line-height: 1.2; }
.ucard h3 small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(236, 232, 255, 0.6); margin-top: 2px; }
.lore { font-family: var(--serif); font-style: italic; font-size: 13.5px; line-height: 1.45; margin: 6px 0 8px; color: rgba(236, 232, 255, 0.85); }
.stats { display: grid; gap: 4px; }
.stat { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 8px; font-size: 11px; }
.stat-l { opacity: 0.6; font-weight: 700; letter-spacing: 0.04em; }
.stat-v { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 22px; text-align: right; }
.stat-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.stat-bar i { display: block; height: 100%; width: var(--w); border-radius: 3px; transform-origin: left; animation: grow 0.9s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.ucard.light .stat-bar i { background: linear-gradient(90deg, #ff9d2e, #ffe28a); }
.ucard.dark .stat-bar i { background: linear-gradient(90deg, #ff3d8b, #c8a0ff); }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.spell-cards { list-style: none; display: grid; gap: 7px; }
.spell-cards li { padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.045); border: 1px solid var(--line); font-size: 13px; line-height: 1.4; }
.spell-cards b { display: block; color: #ff9be0; font-size: 14px; margin-bottom: 2px; }
.spell-cards span { opacity: 0.8; }
.elementals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.elemental { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 10px 6px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); font-size: 13px; }
.elemental small { font-family: var(--serif); font-style: italic; font-size: 12px; opacity: 0.75; line-height: 1.35; }

.victory { list-style: none; display: grid; gap: 9px; }
.victory li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: rgba(95, 247, 230, 0.06); border: 1px solid rgba(95, 247, 230, 0.25); font-size: 14.5px; line-height: 1.4; }
.victory svg { flex: none; width: 26px; height: 26px; color: var(--accent); }
.victory b { color: #fff; }
.sides { display: flex; justify-content: space-between; gap: 10px; margin-top: 4px; }
.side { display: flex; }
.side canvas { margin: 0 -8px; }
.side.light canvas { filter: drop-shadow(0 0 10px rgba(255, 190, 70, 0.5)); }
.side.dark canvas { transform: scaleX(-1); filter: drop-shadow(0 0 10px rgba(160, 90, 255, 0.6)); }

/* Phones held in landscape: ask to rotate (the game is designed for portrait). */
#rotate { display: none; }
@media (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  #rotate {
    display: grid; place-items: center; position: fixed; inset: 0; z-index: 40;
    background: var(--bg); text-align: center; padding: 24px; font-size: 16px; font-weight: 700;
  }
  .rotate-icon { display: block; font-size: 48px; color: var(--accent); margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- 404 page ---------- */
.page-404 { position: static; overflow: auto; height: auto; min-height: 100%; touch-action: auto; display: grid; place-items: center; padding: 24px; }
.page-404 .panel { margin: auto; }
