/* 招待ボーナス成立通知トースト
   画面下中央に固定表示。明示的な × ボタンでのみ閉じる。
   DESIGN.md 準拠: surface + hairline + Pitch Green アクセント。REC Red は使わない。 */
.kr-bonus-toast {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: min(520px, calc(100vw - 24px));
  padding: 12px 14px;
  background: var(--kr-surface);
  border: 1px solid var(--kr-hair);
  border-radius: var(--kr-radius-md);
  box-shadow: var(--kr-shadow-pop);
  color: var(--kr-ink);
  font-family: var(--kr-font-sans);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* CLAUDE.md ルール: display: flex を上書きする hidden は !important で消す */
.kr-bonus-toast[hidden] { display: none !important; }

.kr-bonus-toast__icon {
  flex-shrink: 0;
  font-size: 1.4rem;
  line-height: 1.2;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", system-ui, sans-serif;
}

.kr-bonus-toast__body {
  flex: 1 1 auto;
  min-width: 0;
}

.kr-bonus-toast__title {
  display: block;
  font-weight: 700;
  color: var(--kr-accent);
  margin-bottom: 2px;
}

.kr-bonus-toast__user {
  color: var(--kr-accent);
  font-weight: 700;
}

.kr-bonus-toast__close {
  flex-shrink: 0;
  background: transparent;
  border: 0;
  padding: 4px;
  margin: -4px;
  border-radius: var(--kr-radius-sm);
  color: var(--kr-ink-dim);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.kr-bonus-toast__close:hover { color: var(--kr-ink); }
.kr-bonus-toast__close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 61, 46, .12);
  color: var(--kr-ink);
}
.kr-bonus-toast__close .material-symbols-outlined {
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 480px) {
  .kr-bonus-toast {
    bottom: 12px;
    font-size: 0.85rem;
    padding: 10px 12px;
  }
}
