@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@500;700&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap');

:root {
  --void: #07050B;
  --surface: #110B1A;
  --raised: #1B1226;
  --line: #2E1F42;
  --violet: #7B2FD6;
  --glow: #C77DFF;
  --blood: #C1121F;
  --text: #EBE4F2;
  --muted: #8C7EA3;
  --radius: 4px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--void);
  color: var(--text);
  font-family: 'Zen Kaku Gothic New', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 78% -8%, rgba(123, 47, 214, .28), transparent 65%),
    radial-gradient(45vw 40vh at 5% 105%, rgba(199, 125, 255, .10), transparent 60%);
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
}

h1, h2, h3 {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  letter-spacing: .01em;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.25rem; margin-bottom: .35rem; }

.kanji {
  font-family: 'Shippori Mincho', serif;
  color: var(--glow);
  opacity: .55;
  font-size: .95rem;
  letter-spacing: .3em;
}

p.sub { color: var(--muted); margin: .4rem 0 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  margin-top: 1.75rem;
}

fieldset {
  border: none;
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 0;
  margin: 2rem 0 0;
}

legend { padding: 0; }

label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
  margin: 1.1rem 0 .35rem;
}

input, textarea, select {
  width: 100%;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  padding: .7rem .8rem;
  transition: border-color .15s, box-shadow .15s;
}

textarea { resize: vertical; min-height: 5.5rem; line-height: 1.55; }

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(123, 47, 214, .25);
}

.hint { font-size: .78rem; color: var(--muted); margin: .35rem 0 0; }

button {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  padding: .8rem 1.1rem;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.btn-main {
  width: 100%;
  background: var(--violet);
  border: 1px solid var(--violet);
  color: #fff;
  margin-top: 1.75rem;
}
.btn-main:hover { background: #6A24BE; }
.btn-main:disabled { opacity: .5; cursor: wait; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--violet); }

.tabs { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.tabs button {
  flex: 1;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}
.tabs button[aria-selected="true"] {
  border-color: var(--violet);
  color: var(--text);
  background: rgba(123, 47, 214, .14);
}

.msg {
  margin-top: 1.25rem;
  padding: .75rem .9rem;
  border-radius: var(--radius);
  font-size: .9rem;
  border-left: 3px solid var(--blood);
  background: rgba(193, 18, 31, .12);
}
.msg.ok { border-left-color: var(--glow); background: rgba(199, 125, 255, .12); }
.msg[hidden] { display: none; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: .85rem;
  color: var(--muted);
}
.topbar a { color: var(--glow); }

.golpe {
  border: 1px solid var(--line);
  border-left: 3px solid var(--violet);
  border-radius: var(--radius);
  padding: .25rem 1rem 1.1rem;
  margin-top: 1rem;
  background: var(--raised);
}
.golpe-topo {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: .9rem;
}
.golpe-ordem {
  font-family: 'Shippori Mincho', serif;
  color: var(--glow);
  font-size: .9rem;
}
.remover {
  background: none;
  border: none;
  color: var(--muted);
  font-size: .82rem;
  padding: .2rem .4rem;
}
.remover:hover { color: var(--blood); }

.linha-2 { display: flex; gap: .75rem; }
.linha-2 > div { flex: 1; }

.switch { display: flex; align-items: center; gap: .6rem; margin-top: 1.5rem; }
.switch input { width: auto; }
.switch label { margin: 0; font-size: .9rem; color: var(--text); }

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