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

:root {
  --black: #000;
  --white: #fff;
  --green: #14f195;
  --card: #111;
  --border: rgba(255,255,255,0.08);
  --text-muted: rgba(255,255,255,0.4);
  --font-en: 'Inter', sans-serif;
  --font-ja: 'Noto Sans JP', sans-serif;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-ja);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ──────────────────────────────────────────────── */
.members-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(8px);
  z-index: 100;
  overflow: visible;
}

.members-header__logo {
  font-family: var(--font-en);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--white);
  text-decoration: none;
}

.members-header__wallet {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-en);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.members-header__wallet:hover { border-color: rgba(255,255,255,0.3); }

.wallet-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #555;
  transition: background 0.3s;
}

.wallet-dot.is-connected { background: var(--green); }

/* ── Gate ────────────────────────────────────────────────── */
.gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 57px);
  padding: 2rem 1.5rem;
  text-align: center;
  gap: 1rem;
}

.gate__icon { font-size: 3rem; }

.gate__spinner {
  width: 2.5rem; height: 2.5rem;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.gate__badge {
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: #e55;
  border: 1px solid #e55;
  border-radius: 100px;
  padding: 0.3rem 1rem;
}

.gate__title {
  font-size: 1.125rem;
  font-weight: 700;
}

.gate__heading {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.2;
}

.gate__desc {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

.gate__btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--green);
  color: #000;
  border: none;
  border-radius: 100px;
  font-family: var(--font-en);
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}

.gate__btn:hover { opacity: 0.85; }

.gate__btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}

.gate__error {
  font-size: 0.8125rem;
  color: rgba(255,120,120,0.9);
  background: rgba(255,80,80,0.06);
  border: 1px solid rgba(255,80,80,0.15);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  max-width: 18rem;
  line-height: 1.6;
}

/* ── Vote Header ─────────────────────────────────────────── */
.vote-header {
  padding: 1rem 1.25rem 0;
}

.vote-header__verified {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-en);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--green);
  border: 1px solid rgba(20,241,149,0.3);
  border-radius: 100px;
  padding: 0.3rem 0.875rem;
  margin-bottom: 0.75rem;
}

.vote-header__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.vote-header__title {
  font-family: var(--font-en);
  font-size: clamp(2.5rem, 10vw, 3.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.vote-header__desc {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  margin-bottom: 0;
}

.vote-header__desc a {
  color: var(--white);
  text-decoration: underline;
}

.vote-header__note {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.3);
}

/* ── Vote Form ───────────────────────────────────────────── */
.vote-form {
  padding: 1.5rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.vote-form__identity {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  background: rgba(20,241,149,0.05);
  border: 1px solid rgba(20,241,149,0.15);
  border-radius: 0.75rem;
  padding: 1rem 1.125rem;
}

.vote-form__identity-label {
  font-family: var(--font-en);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.vote-form__identity-addr {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
}

.vote-form__identity-balance {
  font-family: var(--font-en);
  font-size: clamp(0.75rem, 2.5vw, 1.125rem);
  font-weight: 800;
  color: var(--green);
  letter-spacing: 0.02em;
  word-break: break-word;
  line-height: 1.5;
}

.vote-form__identity-qualify {
  font-family: var(--font-en);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(20,241,149,0.6);
  word-break: break-word;
  line-height: 1.6;
}

/* 票数サマリー */
.vote-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(28,28,28,0.97);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 0.875rem 1.25rem;
  position: -webkit-sticky;
  position: sticky;
  top: 57px;
  width: 100%;
  box-sizing: border-box;
  z-index: 40;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.vote-summary__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.vote-summary__label {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-family: var(--font-en);
}

.vote-summary__val {
  font-family: var(--font-en);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
}

.vote-summary__remaining { color: var(--green); }
.vote-summary__remaining.is-zero { color: #ff4444; }
.vote-summary__remaining.is-over { color: #ff4444; }

.vote-summary__sep {
  font-size: 1.25rem;
  color: var(--text-muted);
}

/* フォームフィールド共通 */
.vote-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vote-form__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.9375rem;
  font-weight: 700;
}

.vote-form__label-note {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}

.vote-form__input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.875rem 1rem;
  color: var(--white);
  font-family: var(--font-ja);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s;
}

.vote-form__input::placeholder { color: rgba(255,255,255,0.2); }
.vote-form__input:focus { border-color: rgba(255,255,255,0.25); }

/* 確定ボタン */
.vote-form__submit {
  width: 100%;
  padding: 1.125rem;
  background: var(--white);
  color: var(--black);
  border: none;
  border-radius: 0.75rem;
  font-family: var(--font-ja);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: opacity 0.2s;
}

.vote-form__submit:hover:not(:disabled) { opacity: 0.88; }
.vote-form__submit:disabled { opacity: 0.25; cursor: default; }

/* ── 銘柄リスト ───────────────────────────────────────────── */
.vote-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  box-sizing: border-box;
}

.vote-row {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem 1.125rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  width: 100%;
  box-sizing: border-box;
}

.vote-row__info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.vote-row__names {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  min-width: 0;
}

.vote-row__ticker {
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.vote-row__name {
  font-size: 0.8125rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vote-row__x {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem; height: 2rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  color: var(--text-muted);
  text-decoration: none;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
}

.vote-row__x:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}

.vote-row__controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vote-row__input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.625rem 0.875rem;
  color: var(--white);
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 700;
  outline: none;
  transition: border-color 0.2s;
  -moz-appearance: textfield;
}

.vote-row__input::-webkit-inner-spin-button,
.vote-row__input::-webkit-outer-spin-button { -webkit-appearance: none; }
.vote-row__input:focus { border-color: rgba(255,255,255,0.25); }

.vote-row__slider-wrap { padding: 0.25rem 0; overflow: hidden; max-width: 100%; }

.vote-row__slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  touch-action: pan-x;  /* 横方向のみ許可 */
}

.vote-row__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  background: var(--white);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s;
}

.vote-row__slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

.vote-row__slider::-moz-range-thumb {
  width: 20px; height: 20px;
  background: var(--white);
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

/* ── Receipt ─────────────────────────────────────────────── */
.vote-receipt {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.25rem;
}

.vote-receipt > * + * { margin-top: 1rem; }

.vote-receipt__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.vote-receipt__logo {
  font-family: var(--font-en);
  font-size: 1.125rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.vote-receipt__label {
  font-family: var(--font-en);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.vote-receipt__body {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vote-receipt__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.875rem;
}

.vote-receipt__key {
  font-family: var(--font-en);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
}

.vote-receipt__val { color: var(--white); text-align: right; }
.vote-receipt__val.mono { font-family: 'Courier New', monospace; }

.vote-receipt__divider {
  height: 1px;
  background: var(--border);
  margin: 0.25rem 0;
}

.vote-receipt__votes {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.receipt-vote-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.receipt-vote-ticker {
  font-family: var(--font-en);
  font-weight: 800;
  color: var(--green);
  flex-shrink: 0;
  min-width: 5rem;
}

.receipt-vote-name {
  color: var(--text-muted);
  font-size: 0.8125rem;
  flex: 1;
}

.receipt-vote-count {
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.vote-receipt__instruction {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.55);
  text-align: center;
  line-height: 1.7;
}

.vote-receipt__instruction a {
  color: var(--white);
  text-decoration: underline;
}

.vote-receipt__reset {
  width: 100%;
  padding: 1.125rem;
  background: var(--white);
  color: var(--black);
  border: none;
  border-radius: 0.75rem;
  font-family: var(--font-ja);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: opacity 0.2s;
}

.vote-receipt__reset:hover { opacity: 0.85; }

/* ── Footer ──────────────────────────────────────────────── */
.members-footer {
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ── Step Indicator ──────────────────────────────────────── */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  gap: 0;
}

.step-indicator__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.step-indicator__dot {
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 0.625rem;
  font-weight: 700;
  color: rgba(255,255,255,0.25);
  transition: all 0.3s ease;
}

.step-indicator__label {
  font-size: 0.5625rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.25);
  transition: color 0.3s ease;
}

.step-indicator__line {
  flex: 1;
  height: 1.5px;
  background: rgba(255,255,255,0.08);
  margin: 0 0.375rem;
  margin-bottom: 1rem;
  transition: background 0.3s ease;
}

/* アクティブ */
.step-indicator__item.is-active .step-indicator__dot {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

.step-indicator__item.is-active .step-indicator__label {
  color: var(--white);
  font-weight: 700;
}

/* 完了済み */
.step-indicator__item.is-done .step-indicator__dot {
  background: var(--green);
  border-color: var(--green);
  color: var(--black);
}

.step-indicator__item.is-done .step-indicator__dot::after {
  content: '✓';
  font-size: 0.625rem;
  font-weight: 900;
}

.step-indicator__item.is-done .step-indicator__dot { font-size: 0; }

.step-indicator__item.is-done .step-indicator__label {
  color: var(--green);
}

.step-indicator__item.is-done + .step-indicator__line {
  background: var(--green);
}

/* ── 確認画面 ─────────────────────────────────────────────── */
.vote-confirm {
  max-width: 40rem;
  margin-inline: auto;
  padding: 1.5rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.vote-confirm__title {
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.vote-confirm__desc {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.5);
  margin-top: -0.5rem;
}

.vote-confirm__field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  gap: 1rem;
}

.vote-confirm__key {
  font-size: 0.8125rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.vote-confirm__val {
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: right;
}

.vote-confirm__votes {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.vote-confirm__vote-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.vote-confirm__vote-ticker {
  font-family: var(--font-en);
  font-weight: 800;
  color: var(--green);
  flex-shrink: 0;
  min-width: 6rem;
}

.vote-confirm__vote-name {
  color: var(--text-muted);
  font-size: 0.8125rem;
  flex: 1;
}

.vote-confirm__vote-count {
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.vote-confirm__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.vote-confirm__send {
  width: 100%;
  padding: 1.125rem;
  background: var(--white);
  color: var(--black);
  border: none;
  border-radius: 0.75rem;
  font-family: var(--font-ja);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: opacity 0.2s;
}

.vote-confirm__send:hover:not(:disabled) { opacity: 0.88; }
.vote-confirm__send:disabled { opacity: 0.3; cursor: default; }

.vote-confirm__back {
  width: 100%;
  padding: 1rem;
  background: transparent;
  color: rgba(255,255,255,0.45);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  font-family: var(--font-ja);
  font-size: 0.9375rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.vote-confirm__back:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
}

/* ── 重複警告 ─────────────────────────────────────────────── */
.duplicate-warning {
  background: rgba(255, 80, 80, 0.06);
  border: 1px solid rgba(255, 80, 80, 0.25);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.5rem;
}

.duplicate-warning__icon { font-size: 2rem; }

.duplicate-warning__title {
  font-size: 1rem;
  font-weight: 800;
  color: #ff6b6b;
}

.duplicate-warning__desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

.duplicate-warning__btn {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.75rem 2rem;
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.duplicate-warning__btn:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}

/* ── 完了画面フェードイン ────────────────────────────────────── */
#vote-complete {
  animation: none;
}

#vote-complete.is-visible {
  animation: fadeInUp 1.5s ease forwards;
}

@keyframes fadeInUp {
  0%   { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ── 完了サンクス ─────────────────────────────────────────── */
.vote-receipt__thanks {
  text-align: center;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.vote-receipt__thanks-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.02em;
}

.vote-receipt__thanks-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ── 投票済み専用画面 ─────────────────────────────────────── */
.already-voted {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 57px);
  padding: 2rem 1.5rem;
  text-align: center;
  gap: 1rem;
}

.already-voted__icon { font-size: 3.5rem; }

.already-voted__title {
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
}

.already-voted__desc {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
}

.already-voted__btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 1rem 2.5rem;
  background: var(--white);
  color: var(--black);
  border-radius: 100px;
  font-family: var(--font-en);
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: opacity 0.2s;
}

.already-voted__btn:hover { opacity: 0.85; }

/* ── 安心文言 ─────────────────────────────────────────────── */
.vote-form__security-note {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.7;
  text-align: center;
  padding: 0.25rem 0;
}

/* 必須ラベル */
.vote-form__label-note.required { color: #ff6b6b; }

/* アカウント名エラー時 */
.vote-form__input.is-error {
  border-color: #ff4444 !important;
  box-shadow: 0 0 0 2px rgba(255,68,68,0.2);
}

/* ── 送信中アニメーション ─────────────────────────────────── */
.sending-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  gap: 0;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.sending-screen__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 5rem 2rem 4rem;
  box-sizing: border-box;
  gap: 0;
}

.sending-screen__counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.sending-screen__label {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
  margin-bottom: 0.375rem;
}

/* 数字と票を横並び */
.sending-screen__count-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.sending-screen__count {
  font-family: var(--font-en);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--green);
  letter-spacing: -0.02em;
  line-height: 1;
}

.sending-screen__unit {
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
}

/* ハンコ：票数のそばに小さく横向き */
.sending-screen__stamp {
  opacity: 0;
  transform: scale(2.5) rotate(-8deg);
  transition: none;
}

.sending-screen__stamp.is-stamping {
  animation: stamp-drop 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.sending-screen__stamp-img {
  width: 200px;
  height: auto;
  filter: drop-shadow(0 0 16px rgba(255, 60, 60, 0.7));
}

@keyframes stamp-drop {
  0%   { opacity: 0; transform: scale(2.5) rotate(-8deg); }
  60%  { opacity: 1; transform: scale(0.9) rotate(-8deg); }
  80%  { transform: scale(1.06) rotate(-8deg); }
  100% { opacity: 1; transform: scale(1) rotate(-8deg); }
}

/* キーボード表示時の横ズレ防止 */
input, textarea {
  /* iOSでフォーカス時にページがズームしないよう */
  font-size: max(16px, 1em);
}



/* membersページのラッパーを固定幅に */
#members-content {
  max-width: 480px;
  width: 100%;
  margin-inline: auto;
  position: relative;
}

.vote-confirm__notice {
  font-size: 0.8125rem;
  color: rgba(255, 200, 80, 0.85);
  background: rgba(255, 180, 0, 0.08);
  border: 1px solid rgba(255, 180, 0, 0.2);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  line-height: 1.6;
}

/* ── Language Switch ── */
.lang-switch-btn {
  font-size: 10px;
  font-weight: 600;
  color: #000;
  background: #fff;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 100;
}
.lang-switch-btn:hover {
  background: #ddd;
}
