/* Raid Roaster addon-like palette (PngPreview / UI) */
/* Capture/PNG: koKR UI = fonts/2002.ttf ? Latin FrizQT ? fallback MaruBuri */
@font-face {
  font-family: "RR WoW UI";
  src: url("fonts/2002.ttf") format("truetype"),
       url("fonts/2002.TTF") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "RR WoW UI";
  src: url("fonts/2002b.ttf") format("truetype"),
       url("fonts/2002b.TTF") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "FrizQT";
  src: url("fonts/frizqt__.ttf") format("truetype"),
       url("fonts/FRIZQT__.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* ?? ?? ?? ? ?? ????? 2002? ??. ?? ? ?? ??? ?? */
@font-face {
  font-family: "RR WoW ArialN";
  src: url("fonts/arialn.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "RR WoW PageText";
  src: url("fonts/k_pagetext.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "RR MaruBuri";
  src: url("fonts/MaruBuri-ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "RR MaruBuri";
  src: url("fonts/MaruBuri-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "RR MaruBuri";
  src: url("fonts/MaruBuri-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "RR MaruBuri";
  src: url("fonts/MaruBuri-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "RR MaruBuri";
  src: url("fonts/MaruBuri-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* WoW Classic UI ? brown stone / gold (RaidRoaster PngPreview) */
:root {
  --bg: #100e0c;
  --bg-mid: #1a1612;
  --panel: #1f1c1a;
  --panel-2: #2d2722;
  --header: #38302a;
  --border: #735f4a;
  --border-hi: #a88b5e;
  --gold: #e0c04a;
  --gold-dim: #9a7828;
  --gold-deep: #6a5018;
  --text: #f2ece4;
  --muted: #b0a090;
  --accent: #e0c04a;
  --ok: #3dba7a;
  --bad: #e05555;
  --cell: #171310;
  --cell-hover: #2a241c;
  --inset: rgba(0, 0, 0, 0.45);
  --font: "RR WoW UI", "FrizQT", "RR MaruBuri", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
body.wow-body,
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  min-height: 100vh;
  font-size: 17px;
  position: relative;
}
/* 검은사원 최종보스 일리단 (TBC / Wei Wang TCG art) */
.wow-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: #0a080c;
  background-image:
    linear-gradient(
      180deg,
      rgba(6, 5, 8, 0.42) 0%,
      rgba(8, 7, 10, 0.58) 38%,
      rgba(10, 8, 12, 0.78) 72%,
      rgba(8, 6, 10, 0.92) 100%
    ),
    radial-gradient(ellipse 70% 55% at 72% 42%, rgba(48, 160, 72, 0.14), transparent 58%),
    radial-gradient(ellipse 50% 40% at 18% 55%, rgba(20, 80, 60, 0.12), transparent 55%),
    url("img/illidan-bt.jpg");
  background-size: cover;
  background-position: 62% 28%;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.wow-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,0.4) 3px, rgba(0,0,0,0.4) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(0,0,0,0.22) 3px, rgba(0,0,0,0.22) 4px);
}
@media (max-width: 820px) {
  .wow-bg {
    background-attachment: scroll;
    background-position: 78% 22%;
  }
}
button, input, select, textarea {
  font-family: inherit;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: #f6e08a; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 20px 18px 32px; }

/* HTTPS ? HTTP ?? (???? ??? ??? ??) */
.https-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px;
  background: rgba(20, 14, 8, 0.92);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.https-banner-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 18px 16px;
  background: linear-gradient(180deg, #2a241e, #1a1612);
  border: 1px solid var(--border-hi);
  border-radius: 2px;
  box-shadow: inset 0 0 20px var(--inset);
}
.https-banner-inner strong {
  display: block;
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.https-banner-inner p {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1.02rem;
}
.https-banner-inner .btn { margin: 4px 0 0; }
.https-banner-note {
  margin-top: 12px !important;
  margin-bottom: 0 !important;
  color: var(--muted) !important;
  font-size: 0.9rem !important;
}

/* Title bar */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 14px 18px;
  background:
    linear-gradient(180deg, rgba(58, 50, 42, 0.9) 0%, rgba(42, 36, 30, 0.9) 45%, rgba(30, 26, 22, 0.92) 100%);
  border: 1px solid var(--border-hi);
  border-radius: 2px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow:
    0 0 0 1px #4a3c2a,
    inset 0 1px 0 rgba(255, 220, 140, 0.18),
    inset 0 -2px 8px var(--inset),
    0 6px 18px rgba(0, 0, 0, 0.45);
}
.brand-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
  padding-right: 12px;
}
.brand {
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--gold);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 #1a1400, 0 0 12px rgba(224, 192, 74, 0.25);
}
.brand:hover { color: #f6e08a; text-decoration: none; }
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}
nav a.btn {
  margin-left: 0;
  text-decoration: none;
  white-space: nowrap;
}

.flash {
  padding: 12px 14px;
  border-radius: 2px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  font-size: 1.02rem;
  box-shadow: inset 0 0 12px var(--inset);
}
.flash.ok { background: #14261c; color: #b6f0d0; border-color: #3d7a50; }
.flash.err { background: #2a1414; color: #ffc0c0; border-color: #6a3030; }
.claim-form-error {
  font-weight: 700;
  font-size: 1.08rem;
  border-width: 2px;
  border-color: #c44;
  box-shadow: 0 0 0 1px rgba(220, 80, 80, 0.35), inset 0 0 12px var(--inset);
}
.field-error {
  margin: 4px 0 10px;
  color: #ffb0b0;
  font-size: 0.92rem;
  font-weight: 600;
}
.field-error[hidden] { display: none !important; }
.special-gate-explain {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.special-gate-explain p { margin: 0 0 6px; }
.special-gate-explain p:last-child { margin-bottom: 0; }
.special-gate-explain strong { color: var(--gold); }
#special-gate-modal .rr-modal-panel { max-width: 560px; }
#claim.rr-modal .rr-modal-panel,
#cand-claim.rr-modal .rr-modal-panel,
#rename-modal .rr-modal-panel {
  max-width: 520px;
  max-height: min(92vh, 760px);
  overflow-y: auto;
}
#claim.rr-modal .form input,
#claim.rr-modal .form select,
#cand-claim.rr-modal .form input,
#rename-modal .form input {
  box-sizing: border-box;
  max-width: 100%;
}
#claim-confirm-modal,
#rr-alert-modal,
#rr-confirm-modal {
  z-index: 2200;
}
#special-gate-modal label[for="special-gate-pass"] {
  text-align: center;
}
#special-gate-modal .special-pass-input,
.rr-modal-panel .special-pass-input {
  display: block;
  width: 100%;
  max-width: 280px !important;
  margin: 0 auto 8px;
  padding: 12px 14px;
  font-size: 1.35rem !important;
  letter-spacing: 0.18em;
  text-align: center;
  font-variant-numeric: normal;
  border-radius: 2px;
  background: #151210;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: inset 0 2px 8px var(--inset);
  box-sizing: border-box;
}
#special-gate-modal .special-pass-input:focus,
.rr-modal-panel .special-pass-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.35), inset 0 2px 8px var(--inset);
}
#special-gate-modal #special-gate-error {
  text-align: center;
}
input.is-invalid,
select.is-invalid {
  border-color: #c44 !important;
  box-shadow: 0 0 0 1px rgba(220, 80, 80, 0.45);
}
.flash-pin {
  margin-top: 12px;
  padding: 12px 14px;
  text-align: center;
  font-size: 1.15rem;
  background: #151210;
  border: 1px solid var(--gold);
  border-radius: 2px;
  color: var(--text);
  box-shadow: inset 0 0 16px var(--inset);
}
.flash-pin strong {
  display: inline-block;
  margin-left: 8px;
  font-size: 1.8rem;
  letter-spacing: 0.28em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.flash-pin-note {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}
.pin-input {
  display: block;
  font-size: 1.4rem !important;
  letter-spacing: 0.35em;
  text-align: center;
  font-variant-numeric: tabular-nums;
  max-width: 220px !important;
}
.form .pin-input + .btn,
.form .claim-pin-row + .btn,
.form .claim-pin-row + .meta + .btn {
  margin-top: 28px;
}
.claim-name-row {
  --claim-ctl-h: 48px;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 12px 16px;
  margin-top: 4px;
}
.claim-name-col,
.claim-guest-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.claim-name-col {
  flex: 1 1 160px;
  min-width: 140px;
  max-width: 220px;
}
.form .claim-name-col input {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  height: var(--claim-ctl-h);
  min-height: var(--claim-ctl-h);
  max-height: var(--claim-ctl-h);
  padding: 0 14px;
  line-height: var(--claim-ctl-h);
  font-size: 1.05rem;
}
.claim-guest-col {
  flex: 0 0 auto;
}
.form .claim-name-col label,
.claim-guest-label {
  display: block;
  margin: 0 0 6px;
  min-height: 1.35em;
  line-height: 1.35;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 400;
}
.form .claim-guest-opts.claim-role-opts {
  display: flex;
  align-items: stretch;
  gap: 8px;
  height: var(--claim-ctl-h);
  max-width: none;
  margin: 0;
}
.form .claim-guest-opts .claim-role-opt {
  flex: 1 1 auto;
  min-width: 64px;
  height: var(--claim-ctl-h);
  margin: 0;
}
.form .claim-guest-opts .claim-role-opt span {
  height: var(--claim-ctl-h);
  min-height: var(--claim-ctl-h);
  max-height: var(--claim-ctl-h);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  line-height: 1;
  font-size: 1.05rem;
  font-weight: 600;
  color: #6a5a42;
  white-space: nowrap;
}
.form .claim-guest-opts .claim-role-opt input:checked + span {
  color: #f6e7a2;
  font-weight: 800;
  border-color: var(--gold);
}
.claim-resist-row {
  margin: 12px 0 4px;
}
.claim-resist-label {
  display: block;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 400;
}
.form .claim-resist-opts.claim-role-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: none;
  margin: 0;
}
.form .claim-resist-opts .claim-role-opt {
  flex: 1 1 72px;
  min-width: 64px;
  margin: 0;
}
.form .claim-resist-opts .claim-role-opt[data-resist="fire"] { --role-color: rgb(232, 56, 56); }
.form .claim-resist-opts .claim-role-opt[data-resist="frost"] { --role-color: rgb(105, 204, 240); }
.form .claim-resist-opts .claim-role-opt[data-resist="shadow"] { --role-color: rgb(148, 130, 201); }
.form .claim-resist-opts .claim-role-opt[data-resist="nature"] { --role-color: rgb(171, 212, 115); }
.form .claim-resist-opts .claim-role-opt[data-resist="none"] { --role-color: var(--gold); }
.form .claim-resist-opts .claim-role-opt span {
  padding: 10px 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.form .claim-resist-opts .claim-role-opt input:checked + span {
  color: #fff8e8;
}
.claim-cancel-warn,
.claim-guest-bench-note,
.claim-pin-must {
  display: block;
  width: 100%;
  margin: 0;
  font-weight: 800;
  color: rgb(105, 204, 240);
  background-image: linear-gradient(
    90deg,
    rgb(105, 204, 240) 0%,
    rgb(105, 204, 240) 46%,
    rgb(210, 242, 255) 49%,
    rgb(255, 255, 255) 50%,
    rgb(210, 242, 255) 51%,
    rgb(105, 204, 240) 54%,
    rgb(105, 204, 240) 100%
  );
  background-size: 320% 100%;
  background-repeat: no-repeat;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: claim-cancel-sweep 3.2s linear infinite;
}
.claim-cancel-warn {
  color: rgb(232, 56, 56);
  background-image: linear-gradient(
    90deg,
    rgb(232, 56, 56) 0%,
    rgb(232, 56, 56) 46%,
    rgb(255, 196, 196) 49%,
    rgb(255, 255, 255) 50%,
    rgb(255, 196, 196) 51%,
    rgb(232, 56, 56) 54%,
    rgb(232, 56, 56) 100%
  );
}
.claim-pin-must {
  color: rgb(148, 130, 201);
  background-image: linear-gradient(
    90deg,
    rgb(148, 130, 201) 0%,
    rgb(148, 130, 201) 46%,
    rgb(228, 220, 255) 49%,
    rgb(255, 255, 255) 50%,
    rgb(228, 220, 255) 51%,
    rgb(148, 130, 201) 54%,
    rgb(148, 130, 201) 100%
  );
}
@keyframes claim-cancel-sweep {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .claim-cancel-warn,
  .claim-guest-bench-note,
  .claim-pin-must {
    animation: none;
    background: none;
    -webkit-text-fill-color: rgb(105, 204, 240);
    color: rgb(105, 204, 240);
  }
  .claim-cancel-warn {
    -webkit-text-fill-color: rgb(232, 56, 56);
    color: rgb(232, 56, 56);
  }
  .claim-pin-must {
    -webkit-text-fill-color: rgb(148, 130, 201);
    color: rgb(148, 130, 201);
  }
}
.rr-modal-panel p.claim-guest-bench-note,
.claim-guest-bench-note {
  display: none;
  margin: 10px 0 6px;
  padding: 0;
  border: 0;
  box-shadow: none;
  font-size: inherit;
  line-height: 1.45;
  word-break: keep-all;
}
#claim-form:has(#claim-guest-1:checked) .claim-guest-bench-note,
.claim-guest-bench-note.is-on {
  display: block;
}
.rr-modal-panel label.claim-guest-box,
.claim-guest-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--border);
  background: #151210;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  box-sizing: border-box;
  box-shadow: inset 0 2px 8px var(--inset);
}
.form .claim-guest-box input,
.claim-guest-box input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px !important;
  max-width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  pointer-events: none;
}
.claim-guest-box span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.claim-guest-box span::before {
  content: "";
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border: 2px solid #6a5a42;
  background: #0c0a08;
  border-radius: 2px;
}
.claim-guest-box.is-on,
.claim-guest-box:has(:checked) {
  border-color: var(--gold);
  color: var(--gold);
}
.claim-guest-box.is-on span,
.claim-guest-box:has(:checked) span {
  color: var(--gold);
}
.claim-guest-box.is-on span::before,
.claim-guest-box:has(:checked) span::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: var(--gold);
  background: var(--gold);
  color: #1a1400;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.claim-pin-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  margin-top: 4px;
}
.claim-pin-col {
  flex: 0 0 auto;
}
.claim-note-col {
  flex: 1 1 160px;
  min-width: 140px;
  max-width: 260px;
}
.claim-pin-row input {
  box-sizing: border-box;
  height: 52px;
  min-height: 52px;
  padding-top: 0;
  padding-bottom: 0;
}
.claim-note-col input {
  width: 100%;
  max-width: none !important;
  border-color: var(--gold-dim);
}
.form label.claim-note-label,
.claim-note-label {
  color: var(--gold);
  font-weight: 700;
  line-height: 1.35;
  word-break: keep-all;
}
.claim-note-label .req-mark {
  color: #f0c04a;
  font-weight: 800;
}
.form .req-badge,
.rr-modal-panel .req-badge,
.claim-resist-label .req-badge,
.claim-note-label .req-badge {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 7px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  vertical-align: 1px;
  white-space: nowrap;
}
.claim-pin-row + .meta,
.rr-modal-panel .claim-pin-row + .meta {
  margin-top: 8px;
}
.field-hint,
.rr-modal-panel .field-hint {
  margin-top: 18px;
}

/* Stone panel — 반투명해 일리단 배경이 비침 */
.card {
  background:
    linear-gradient(180deg, rgba(42, 36, 30, 0.9) 0%, rgba(31, 28, 26, 0.9) 55%, rgba(22, 18, 14, 0.92) 100%);
  border: 1px solid var(--border-hi);
  border-radius: 2px;
  padding: 18px 20px;
  margin-bottom: 16px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow:
    0 0 0 1px #3a3024,
    inset 0 1px 0 rgba(255, 220, 150, 0.1),
    inset 0 0 24px var(--inset),
    0 8px 22px rgba(0, 0, 0, 0.45);
}
h1, h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 0 #1a1400;
}
.raid-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 16px;
  flex-wrap: wrap;
  margin: 0 0 10px;
}
.raid-title-row h1 {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.raid-invite-time {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-shadow: 0 1px 0 #1a1400;
}
.open-cancel-note {
  flex: 0 0 auto;
  padding: 3px 10px;
  text-align: center;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: #c41e1e;
  border: 2px solid #fff;
  border-radius: 3px;
  box-shadow: 0 0 0 1px #7a1010;
}
.open-cancel-note.is-full {
  background: #1a9d45;
  box-shadow: 0 0 0 1px #0d5c28;
}
.card.home-hero {
  padding: 0;
  overflow: hidden;
}
.home-hero-quote {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #070907;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  line-height: 0;
}
.home-hero-quote:hover .home-hero-tag-gif,
.home-hero-quote:focus-visible .home-hero-tag-gif {
  filter: brightness(1.08);
}
.home-hero-tag-gif {
  display: block;
  width: 100%;
  height: clamp(120px, 16vw, 190px);
  object-fit: cover;
  object-position: center 40%;
  border: 0;
  background: #070907;
}
.home-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 16px 10px;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 6, 4, 0.72) 0%, rgba(8, 6, 4, 0.12) 38%, rgba(8, 6, 4, 0.18) 62%, rgba(8, 6, 4, 0.78) 100%);
  line-height: 1.35;
}
.home-hero-title {
  color: var(--gold);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85), 0 0 12px rgba(0, 0, 0, 0.55);
}
.home-hero-note {
  align-self: flex-end;
  color: var(--gold);
  font-size: 0.98rem;
  text-align: right;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85), 0 0 12px rgba(0, 0, 0, 0.55);
}
h3 { margin: 16px 0 8px; font-size: 1.15rem; color: var(--gold); }
.meta { color: var(--muted); font-size: 1.05rem; margin-bottom: 14px; }
.raid-status-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  text-align: right;
}
.raid-status-meta .open-cancel-note {
  margin-right: auto;
  text-align: center;
}
.rr-discord-apply-need {
  margin: 0 0 14px;
}
.rr-discord-apply-need .meta {
  margin-bottom: 8px;
}
.rr-discord-apply-cta {
  margin: 0 0 14px;
}
.rr-discord-apply-cta .btn {
  display: inline-block;
}
.raid-status-meta .raid-status-text {
  min-width: 0;
}

.list a.raid-link {
  display: block;
  padding: 14px 16px;
  border-radius: 2px;
  background: var(--cell);
  border: 1px solid var(--border);
  color: var(--text);
  margin-bottom: 8px;
  font-size: 1.05rem;
  box-shadow: inset 0 0 12px var(--inset);
}
.list a.raid-link:hover {
  border-color: var(--gold);
  background: var(--cell-hover);
  text-decoration: none;
}
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 2px;
  font-size: 0.92rem;
  border: 1px solid var(--border);
  color: var(--muted);
}
.badge.open { border-color: #3d7a50; color: #9fe3bf; background: #14261c; }
.badge.locked,
.badge.cancelled { border-color: #6a3030; color: #ffb0b0; background: #2a1414; }

/* === Month calendar (HTML table) === */
.cal {
  background:
    linear-gradient(180deg, rgba(42, 36, 30, 0.9) 0%, rgba(31, 28, 26, 0.92) 100%);
  border: 1px solid var(--border-hi);
  border-radius: 2px;
  padding: 14px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow:
    0 0 0 1px #3a3024,
    inset 0 1px 0 rgba(255, 220, 150, 0.1),
    0 8px 22px rgba(0, 0, 0, 0.45);
  overflow-x: auto;
}
.cal-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  margin-bottom: 12px;
  gap: 12px;
}
.cal-nav-group {
  grid-column: 2;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.cal-title {
  margin: 0;
  padding: 0;
  display: block;
  width: auto;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--gold);
  font-weight: 700;
  text-shadow: 0 1px 0 #1a1400;
  white-space: nowrap;
}
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-hi);
  background: linear-gradient(180deg, #4a3e32, #2a241e);
  color: var(--gold);
  border-radius: 2px;
  font-size: 1.4rem;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 220, 150, 0.15);
  flex: 0 0 auto;
}
.cal-nav:hover { border-color: var(--gold); color: #f6e08a; text-decoration: none; }
.cal-head-right {
  grid-column: 3;
  justify-self: end;
}
.cal-today,
.cal-create {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--muted);
  font-size: 0.95rem;
  background: var(--cell);
  white-space: nowrap;
}
.cal-create {
  color: #1a1400;
  font-weight: 700;
  background: linear-gradient(180deg, #f0d060, #c9a227);
  border-color: #e0c04a;
}
.cal-today:hover { color: var(--gold); border-color: var(--gold-dim); text-decoration: none; }
.cal-create:hover {
  color: #1a1400;
  border-color: #f0d060;
  filter: brightness(1.06);
  text-decoration: none;
}

.cal-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border: 1px solid var(--border-hi);
  background: #151210;
  box-shadow: inset 0 0 20px var(--inset);
}
.cal-table th,
.cal-table td {
  border: 1px solid var(--border);
  vertical-align: top;
  width: 14.2857%;
}
.cal-table thead th {
  background: linear-gradient(180deg, #3a322a, #2a241e);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border-hi);
  text-shadow: 0 1px 0 #1a1400;
}
.cal-table thead th.sun { color: #e08080; }
.cal-table thead th.sat { color: #8eb8e0; }
.cal-table td {
  height: 128px;
  padding: 0;
  background: var(--cell);
}
.cal-table td.empty {
  background: #100e0c;
  color: transparent;
}
.cal-table td.today {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
  background: #2a2218;
}
.cal-table td.has-raid {
  background: #14110e;
}
.cal-cell {
  position: relative;
  height: 100%;
  min-height: 128px;
  padding: 6px;
  box-sizing: border-box;
}
.cal-table td.has-raid .cal-cell {
  padding: 0;
}
.cal-table td.sun .cal-date { color: #e08080; }
.cal-table td.sat .cal-date { color: #8eb8e0; }
.cal-date {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 3;
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--text);
  text-align: right;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.55);
}
.cal-table td.has-raid .cal-date {
  color: #f6efe4;
}
.cal-table td.has-raid.sun .cal-date {
  color: #e08080;
}
.cal-table td.has-raid.sat .cal-date {
  color: #8eb8e0;
}
.cal-raids {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: absolute;
  inset: 0;
  z-index: 1;
}
.cal-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1 1 0;
  min-height: 0;
  padding: 28px 7px 44px;
  border-radius: 0;
  font-size: 0.78rem;
  line-height: 1.25;
  border: 0;
  color: var(--text);
  text-decoration: none;
  box-sizing: border-box;
  overflow: hidden;
}
.cal-chip.open {
  background:
    linear-gradient(180deg, rgba(8, 14, 10, 0.18) 0%, rgba(8, 14, 10, 0.08) 35%, rgba(8, 14, 10, 0.55) 100%),
    linear-gradient(180deg, #245338, #163224);
  color: #c8f0d8;
  box-shadow: inset 0 0 0 1px rgba(80, 150, 100, 0.45);
}
.cal-chip.locked,
.cal-chip.cancelled {
  background:
    linear-gradient(180deg, rgba(18, 8, 8, 0.18) 0%, rgba(18, 8, 8, 0.08) 35%, rgba(18, 8, 8, 0.55) 100%),
    linear-gradient(180deg, #4a2222, #2a1414);
  color: #ffc0c0;
  box-shadow: inset 0 0 0 1px rgba(140, 70, 70, 0.5);
}
.cal-chip:hover {
  filter: brightness(1.08);
  box-shadow: inset 0 0 0 1px var(--gold);
  text-decoration: none;
}
.cal-chip-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding-right: 28px;
}
.cal-chip-time {
  display: block;
  font-weight: 700;
  color: var(--gold);
  font-size: 0.9rem;
  line-height: 1.15;
}
.cal-chip-name {
  display: block;
  line-height: 1.2;
  word-break: keep-all;
}
.cal-chip-kind {
  margin-left: 4px;
  font-weight: 700;
  white-space: nowrap;
}
.cal-chip-kind.kind-booked {
  color: #d8b45c;
  text-shadow: 0 1px 0 rgba(50, 32, 8, 0.55);
}
.cal-chip-kind.kind-open {
  color: #cfd6e2;
  text-shadow: 0 1px 0 rgba(20, 24, 32, 0.55);
}
.cal-chip-days {
  color: var(--gold);
  font-size: 0.82em;
  font-weight: 700;
  white-space: nowrap;
}
.cal-chip-count {
  display: block;
  color: rgba(210, 200, 185, 0.88);
  font-size: 0.72rem;
  line-height: 1.2;
}
.cal-chip-status {
  display: block;
  margin-top: 0.55em;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--gold);
}
.cal-chip.locked .cal-chip-status,
.cal-chip.cancelled .cal-chip-status {
  color: #ffb0b0;
}
.cal-chip-bosses {
  position: absolute;
  right: 10px;
  bottom: 12px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  margin: 0;
  z-index: 2;
  pointer-events: none;
}
.cal-chip-boss {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(224, 192, 74, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.45);
  background: #120e0a;
}
.cal-chip.locked .cal-chip-boss,
.cal-chip.cancelled .cal-chip-boss {
  border-color: rgba(180, 90, 90, 0.6);
  filter: saturate(0.85);
}
.cal-chip.locked .cal-chip-time,
.cal-chip.cancelled .cal-chip-time { color: #ffb0b0; }

@media (max-width: 720px) {
  .cal { padding: 8px; }
  .cal-table td,
  .cal-cell { min-height: 96px; height: 96px; }
  .cal-chip { font-size: 0.7rem; padding: 24px 5px 38px; }
  .cal-chip-body { padding-right: 22px; gap: 1px; }
  .cal-chip-time { font-size: 0.82rem; }
  .cal-chip-bosses { right: 8px; bottom: 10px; }
  .cal-chip-boss { width: 22px; height: 22px; }
  .cal-title { font-size: 1.15rem; }
  .cal-table thead th { font-size: 0.85rem; padding: 8px 2px; }
}

/* === Addon-like party board === */
.rr-board-wrap {
  position: relative;
}
.rr-cancel-stamp {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 8;
}
.rr-cancel-stamp span,
.rr-raid-stamp span {
  display: inline-block;
  transform: rotate(-18deg);
  font-family: "RR WoW UI", "RR MaruBuri", sans-serif;
  font-weight: 700;
  font-size: clamp(42px, 9vw, 88px);
  letter-spacing: 0.16em;
  line-height: 1;
  white-space: nowrap;
  border-radius: 10px;
  padding: 10px 26px 14px;
}
.rr-cancel-stamp span {
  color: rgba(196, 36, 36, 0.82);
  border: 7px solid rgba(196, 36, 36, 0.82);
  background: rgba(70, 8, 8, 0.08);
  box-shadow:
    inset 0 0 0 3px rgba(196, 36, 36, 0.5),
    0 2px 0 rgba(40, 0, 0, 0.2);
  text-shadow: 0 1px 0 rgba(80, 0, 0, 0.28);
}
.rr-raid-stamp {
  --stamp-fill: 0%;
  --stamp-water: rgba(220, 56, 48, 0.5);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 7;
}
.rr-raid-stamp[data-tone="orange"] { --stamp-water: rgba(255, 140, 48, 0.5); }
.rr-raid-stamp[data-tone="yellow"] { --stamp-water: rgba(255, 228, 140, 0.5); }
.rr-raid-stamp[data-tone="green"] { --stamp-water: rgba(72, 190, 100, 0.5); }
.rr-raid-stamp[data-tone="blue"] { --stamp-water: rgba(64, 140, 230, 0.52); }
.rr-raid-stamp span {
  --rr-batt-font: clamp(42px, 9vw, 88px);
  position: relative;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.46);
  border: none;
  background: transparent;
  box-shadow: none;
  text-shadow: none;
  font-size: var(--rr-batt-font);
  height: calc(28px + var(--rr-batt-font));
  padding: 0 32px 0 58px;
}
.rr-raid-stamp-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.rr-raid-stamp-water {
  fill: var(--stamp-water);
}
.rr-raid-stamp-outline {
  fill: none;
  stroke: rgba(255, 255, 255, 0.42);
  stroke-width: 3.6;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.rr-raid-stamp[data-len="3"] span {
  letter-spacing: 0.2em;
}
.rr-raid-stamp[data-len="4"] span,
.rr-raid-stamp[data-len="5"] span {
  font-size: clamp(36px, 7.6vw, 78px);
  letter-spacing: 0.1em;
}
.rr-raid-stamp[data-len="6"] span {
  font-size: clamp(32px, 6.6vw, 68px);
  letter-spacing: 0.1em;
}
.rr-raid-stamp[data-len="9"] span,
.rr-raid-stamp[data-len="10"] span {
  font-size: clamp(26px, 5.4vw, 56px);
  letter-spacing: 0.08em;
}
.rr-board {
  width: 100%;
  border-collapse: separate;
  border-spacing: 5px;
  table-layout: fixed;
  margin-top: 10px;
}
.rr-board thead th {
  background: linear-gradient(180deg, #4a3e32 0%, #2a241e 100%);
  color: var(--gold);
  font-size: 1.15rem;
  font-weight: 700;
  padding: 10px 6px;
  border: 1px solid var(--border-hi);
  border-radius: 2px;
  text-align: center;
  text-shadow: 0 1px 0 #1a1400;
  box-shadow: inset 0 1px 0 rgba(255, 220, 150, 0.12);
}
.preview-title {
  margin: 20px 0 8px;
  color: var(--gold);
  font-size: 1.1rem;
}
body.setup-wide .wrap {
  max-width: 1680px;
}
.setup-layout {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.setup-page {
  max-width: none;
  margin: 0;
}
.setup-page .setup-section-title {
  margin: 22px 0 10px;
  color: var(--gold);
  font-size: 1.05rem;
}
.setup-page .setup-section-title:first-of-type {
  margin-top: 8px;
}
.setup-page label {
  display: block;
  margin-top: 12px;
}
.setup-page input[type="url"],
.setup-page input[type="password"],
.setup-page input[type="text"] {
  width: 100%;
  box-sizing: border-box;
}
.setup-emoji-panel {
  display: flex;
  flex-direction: column;
  min-height: 72vh;
  padding: 0;
  overflow: hidden;
}
.setup-emoji-head {
  padding: 12px 14px 8px;
  border-bottom: 1px solid var(--line, rgba(201, 162, 39, 0.25));
  flex-shrink: 0;
}
.setup-emoji-head h2 {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 1.05rem;
}
.setup-emoji-head .meta {
  margin: 0;
}
.setup-emoji-frame {
  flex: 1;
  width: 100%;
  min-height: 68vh;
  border: 0;
  background: #0f1115;
}
@media (max-width: 960px) {
  .setup-layout {
    grid-template-columns: 1fr;
  }
  .setup-emoji-frame {
    min-height: 60vh;
  }
}

/* Spec icons (addon HintIcons) */
.spec-icons {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  vertical-align: middle;
}
.spec-icon {
  width: 22px;
  height: 22px;
  border-radius: 2px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  object-fit: cover;
  image-rendering: auto;
  /* crop black icon border like addon TexCoord */
  clip-path: inset(6% 6% 6% 6%);
}
.hint-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  flex-wrap: nowrap;
  min-height: 24px;
  width: 100%;
  text-align: left;
}

/* admin cell — 입력 아래 빈 여백 줄임 */
.rr-cell.admin-cell {
  padding: 8px 6px;
  min-height: 0;
  height: auto;
  justify-content: flex-start;
}

/* 새 일정 만들기: 아이콘 · 직업 · 특별석 — 한 줄 */
.rr-cell.create-cell {
  padding: 6px 5px;
  min-height: 0;
  height: auto;
  justify-content: center;
}
.rr-cell.create-cell .create-hint-line {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 3px;
  width: 100%;
  min-width: 0;
}
.rr-cell.create-cell .create-icons-host {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  min-width: 0;
}
.rr-cell.create-cell .create-hint-line .spec-icons {
  display: flex;
  flex: 0 0 auto;
  margin: 0;
}
.rr-cell.create-cell .create-hint-line .hint-input,
.rr-cell.create-cell .create-hint-line .create-hint {
  flex: 1 1 auto;
  width: 0;
  min-width: 2.5em;
  margin: 0;
  padding: 2px 4px;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  color: var(--gold);
}
.rr-cell.create-cell .create-hint-line .hint-input:hover,
.rr-cell.create-cell .create-hint-line .create-hint:hover {
  border-bottom-color: var(--gold-dim);
}
.rr-cell.create-cell .create-hint-line .hint-input:focus,
.rr-cell.create-cell .create-hint-line .create-hint:focus {
  outline: none;
  border-bottom-color: var(--gold);
  background: rgba(0,0,0,0.25);
}
.rr-cell.create-cell .create-hint-line .special-check {
  display: inline-flex;
  flex: 0 0 auto;
  margin: 0;
  margin-left: auto;
  white-space: nowrap;
  font-size: 0.7rem;
}
.rr-cell.create-cell .create-name-line {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  width: 100%;
  margin-top: 4px;
  min-width: 0;
}
.rr-cell.create-cell .create-name-line .create-name {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: 100%;
  padding: 3px 5px;
  font-size: 0.85rem;
}
.rr-create-import-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 10px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  border-radius: 2px;
}
.rr-create-import-bar .rr-create-import-label {
  flex: 0 0 auto;
  margin: 0;
  color: var(--gold);
  font-weight: 700;
}
.rr-create-import-bar #rr-import-raid {
  flex: 1 1 220px;
  min-width: 160px;
  max-width: 420px;
  margin: 0;
}
.rr-create-import-bar .rr-create-import-names {
  flex: 0 0 auto;
  margin: 0;
  white-space: nowrap;
}
.rr-create-import-bar #rr-import-btn {
  flex: 0 0 auto;
}
.rr-create-import-bar #rr-import-status {
  flex: 1 1 160px;
  margin: 0;
  min-width: 0;
}
.rr-cell.admin-cell .hint-form .spec-icons {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-start;
  margin: 0;
}
.rr-cell .admin-hint-line {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  width: 100%;
  margin: 0 0 4px;
}
.rr-cell .hint-form {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.rr-cell .special-instant-form {
  flex: 0 0 auto;
  margin: 0;
  display: flex;
}
.rr-cell .hint-input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: none;
  padding: 4px 6px;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  color: var(--gold);
}
.rr-cell .hint-input:hover { border-bottom-color: var(--gold-dim); }
.rr-cell .hint-input:focus {
  outline: none;
  border-bottom-color: var(--gold);
  background: rgba(0,0,0,0.25);
}
.rr-cell .hint-save {
  flex: 0 0 auto;
  padding: 3px 8px;
  font-size: 0.8rem;
  border: 1px solid var(--gold-dim);
  background: transparent;
  color: var(--muted);
  border-radius: 2px;
  cursor: pointer;
  line-height: 1.2;
}
.rr-cell .hint-save:hover { color: var(--gold); border-color: var(--gold); }
.rr-cell .clear-form {
  display: flex;
  justify-content: flex-end;
  margin: 0;
  width: auto;
  flex: 0 0 auto;
}
.rr-cell .admin-filled-row,
.rr-cand-cell .admin-filled-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  width: 100%;
  margin: 2px 0 0;
}
.rr-cell .admin-filled-row .name,
.rr-cand-cell .admin-filled-row .name {
  display: inline-block;
  flex: 0 1 auto;
  width: auto;
  max-width: calc(100% - 72px);
  min-width: 0;
  margin: 0 !important;
  margin-top: 0 !important;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rr-cand-cell .admin-filled-row .name {
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.25;
}
.rr-cand-cell .clear-form {
  display: flex;
  justify-content: flex-end;
  margin: 0;
  width: auto;
  flex: 0 0 auto;
}
.rr-cell .admin-name-form,
.rr-cand-cell .admin-name-form {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  margin: 2px 0 4px;
  width: 100%;
}
.rr-cell .admin-name-form.has-role {
  flex-wrap: wrap;
}
.rr-cell .admin-name-form.has-role .admin-role-input {
  flex: 1 1 100%;
}
.rr-cell .admin-name-form .admin-name-input,
.rr-cell .admin-name-form.name-only .admin-name-input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}
.rr-cell .admin-name-form .hint-save {
  flex: 0 0 auto;
  align-self: center;
}
.rr-cand-cell .admin-name-form,
.rr-cand-cell .admin-name-form.cand-admin-form {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 4px;
}
.rr-cand-cell .admin-name-line {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  width: 100%;
}
.rr-cand-cell .admin-name-line .admin-name-input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: calc(100% - 54px);
}
.rr-cand-cell .admin-name-line .cancel-btn {
  flex: 0 0 auto;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  font-size: 0.75rem;
  line-height: 1.2;
  white-space: nowrap;
}
.rr-cand-cell .admin-name-line .hint-save {
  flex: 0 0 auto;
  align-self: center;
}
.rr-cell .admin-name-input,
.rr-cell .admin-role-input,
.rr-cand-cell .admin-name-input,
.rr-cand-cell .admin-role-input {
  width: 100%;
  min-width: 0;
  padding: 4px 6px;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  color-scheme: dark;
  background: #1a1612;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
.rr-cell .admin-name-input::placeholder,
.rr-cell .admin-role-input::placeholder,
.rr-cand-cell .admin-name-input::placeholder,
.rr-cand-cell .admin-role-input::placeholder {
  color: var(--muted);
  opacity: 0.85;
}
.rr-cell .admin-name-input:focus,
.rr-cell .admin-role-input:focus,
.rr-cand-cell .admin-name-input:focus,
.rr-cand-cell .admin-role-input:focus {
  outline: none;
  border-color: var(--gold-dim);
  background: #221c16;
}
.rr-cell .admin-name-input:-webkit-autofill,
.rr-cell .admin-role-input:-webkit-autofill,
.rr-cand-cell .admin-name-input:-webkit-autofill,
.rr-cand-cell .admin-role-input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  box-shadow: 0 0 0 1000px #1a1612 inset;
  transition: background-color 99999s ease-out;
}
.rr-cand-cell .admin-name-form .hint-save {
  align-self: flex-end;
}
.rr-cand-cell .hint-save {
  flex: 0 0 auto;
  padding: 3px 8px;
  font-size: 0.8rem;
  border: 1px solid var(--gold-dim);
  background: transparent;
  color: var(--muted);
  border-radius: 2px;
  cursor: pointer;
  line-height: 1.2;
}
.rr-cand-cell .hint-save:hover { color: var(--gold); border-color: var(--gold); }

.rr-cell {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 112px;
  height: 100%;
  padding: 10px 8px;
  background: linear-gradient(180deg, #221c16 0%, #171310 100%);
  border: 1px solid var(--border);
  border-radius: 2px;
  text-align: left;
  color: var(--text);
  box-sizing: border-box;
  box-shadow: inset 0 0 14px var(--inset);
  transition: background 0.12s, border-color 0.12s, box-shadow 0.12s;
}
.rr-board td {
  height: 1px; /* allow child height:100% stretch in row */
  vertical-align: stretch;
}
a.rr-cell { cursor: pointer; }
a.rr-cell:hover {
  background: var(--cell-hover);
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.35);
  text-decoration: none;
}

/* ? ì²­ ê°??ì¹????ì¤???ì ?ê² (?¸ë¡ ?ì´ ?¼ë° ì¹¸ê³¼ ?ì¼) */
a.rr-cell.claimable {
  background: linear-gradient(180deg, #1a3d2a 0%, #12281c 100%);
  border: 1px solid #3dba7a;
  box-shadow: 0 0 0 2px rgba(61, 186, 122, 0.35), inset 0 0 18px rgba(61, 186, 122, 0.08);
  animation: claim-pulse 2.2s ease-in-out infinite;
}
a.rr-cell.claimable:hover {
  background: linear-gradient(180deg, #245a3a 0%, #1a3d2a 100%);
  border-color: #5eeba0;
  box-shadow: 0 0 0 3px rgba(61, 186, 122, 0.5), inset 0 0 22px rgba(61, 186, 122, 0.15);
  animation: none;
}
a.rr-cell.claimable .claim-label {
  display: block;
  margin-top: auto;
  padding: 6px 8px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #0d1a12;
  background: linear-gradient(180deg, #6eefab, #3dba7a);
  border-radius: 3px;
  border: 1px solid #8ff0c0;
}
/* 특별석 신청 — 일반 신청(초록)과 구분되는 보라 */
a.rr-cell.claimable.special {
  background: linear-gradient(180deg, #2a1a3d 0%, #1a1228 100%);
  border: 1px solid #a78bfa;
  box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.35), inset 0 0 18px rgba(167, 139, 250, 0.1);
  animation: special-claim-pulse 2.2s ease-in-out infinite;
}
a.rr-cell.claimable.special:hover {
  background: linear-gradient(180deg, #3d2460 0%, #2a1a3d 100%);
  border-color: #c4b5fd;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.5), inset 0 0 22px rgba(167, 139, 250, 0.18);
  animation: none;
}
a.rr-cell.claimable.special .claim-label {
  color: #1a0f2e;
  background: linear-gradient(180deg, #c4b5fd, #8b5cf6);
  border: 1px solid #ddd6fe;
}
@keyframes special-claim-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.3), inset 0 0 18px rgba(167, 139, 250, 0.1); }
  50% { box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.5), inset 0 0 22px rgba(167, 139, 250, 0.16); }
}
@media (prefers-reduced-motion: reduce) {
  a.rr-cell.claimable.special { animation: none; }
}
.rr-cell.claim-busy {
  background: linear-gradient(180deg, #3a2a14 0%, #2a1c10 100%);
  border: 1px solid #c9a227;
  box-shadow: inset 0 0 16px rgba(201, 162, 39, 0.12);
  cursor: not-allowed;
}
.rr-cell.claim-busy .claim-busy-label {
  display: block;
  margin-top: auto;
  padding: 6px 8px;
  text-align: center;
  font-size: 1.02rem;
  font-weight: 700;
  color: #1a1400;
  background: linear-gradient(180deg, #f0d060, #c9a227);
  border-radius: 3px;
  border: 1px solid #f0d060;
}
.rr-cell.claim-busy .claim-busy-note {
  display: block;
  margin-top: 4px;
  text-align: center;
  font-size: 0.82rem;
  color: #e0c04a;
}
@keyframes claim-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(61, 186, 122, 0.3), inset 0 0 18px rgba(61, 186, 122, 0.08); }
  50% { box-shadow: 0 0 0 3px rgba(61, 186, 122, 0.5), inset 0 0 22px rgba(61, 186, 122, 0.14); }
}
@media (prefers-reduced-motion: reduce) {
  a.rr-cell.claimable { animation: none; }
}
.rr-cell .hint {
  display: inline;
  font-size: 1.1rem;
  font-weight: 400; /* DisableSmall ? Regular */
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rr-cell .hint span,
.rr-cand-cell .hint span,
.cap-hint span {
  font: inherit;
  letter-spacing: inherit;
}
.hint-row-end {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex: 0 0 auto;
  min-width: 0;
}
.hint-row-end .guest-mark,
.hint-row-end .cap-guest {
  margin-left: 0;
}
.rr-cell .guest-mark,
.rr-cand-cell .guest-mark {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  margin-left: auto;
  margin-top: 0;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
}
.guest-mark .guest-icon,
.cap-guest .cap-guest-icon {
  color: inherit;
}
.guest-mark .guest-icon {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  display: block;
}
.rr-cand-cell .hint-row:has(.guest-mark) .rr-cand-num {
  margin-left: 0;
}
.rr-cell .name {
  display: block;
  font-size: 1.32rem;
  font-weight: 700;
  margin-top: 6px;
  line-height: 1.25;
  text-align: right;
}
.rr-cell .claim-note,
.rr-cand-cell .claim-note {
  display: block;
  margin-top: 3px;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.25;
  min-height: calc(0.8rem * 1.25);
  color: var(--gold);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rr-cell .name.placeholder {
  color: var(--muted);
  font-weight: 400;
  font-size: 1.1rem;
  text-align: right;
}
.rr-cell.filled {
  background: linear-gradient(180deg, #2a241c 0%, #1a1612 100%);
  border-color: var(--border-hi);
  opacity: 0.95;
}
.rr-cell.locked-empty { opacity: 0.55; }
.rr-cell .cell-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 14px;
  margin-left: auto;
}
.rr-cell .edit-btn,
.rr-cell .cancel-btn,
.rr-cand-cell .cancel-btn:not(.cand-cancel-btn) {
  display: inline-block;
  margin: 0;
  padding: 5px 10px;
  font: inherit;
  font-size: 0.85rem;
  border-radius: 3px;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
}
button.cancel-btn,
button.edit-btn {
  appearance: none;
  -webkit-appearance: none;
}
.rr-cell .edit-btn {
  border: 1px solid var(--gold-dim);
  background: var(--header);
  color: var(--gold);
}
a.edit-btn:hover,
button.edit-btn:hover { border-color: var(--gold); color: #e0c04a; text-decoration: none; }
.rr-cell .cancel-btn,
.rr-cand-cell .cancel-btn:not(.cand-cancel-btn) {
  border: 1px solid #6a3030;
  background: #2a1414;
  color: #ffb0b0;
}
a.cancel-btn:hover,
.rr-cell .cancel-btn:hover,
.rr-cand-cell .cancel-btn:not(.cand-cancel-btn):hover { background: #3d1c1c; color: #ffd0d0; text-decoration: none; }
.rr-cell .admin-cancel-form { margin: 0; }
.rr-cell.filled .name { margin-bottom: 2px; }

.claim-role-fixed {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  max-width: 420px;
  background: var(--cell);
  border: 1px solid var(--gold-dim);
  border-radius: 4px;
  font-size: 1.15rem;
}
.form label { display: block; margin: 12px 0 6px; color: var(--muted); font-size: 1.02rem; }
.claim-role-opts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 420px;
  margin: 0 0 4px;
}
.form .claim-role-opt {
  display: flex;
  flex: 1 1 0;
  min-width: 88px;
  margin: 0;
  cursor: pointer;
}
.form .claim-role-opt input[type="radio"],
.form .claim-role-opt input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  box-shadow: none;
  max-width: none;
}
.form .claim-role-opt span {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: #151210;
  color: var(--role-color, var(--text));
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: inset 0 2px 8px var(--inset);
}
.form .claim-role-opt input:checked + span {
  border-color: var(--role-color, var(--gold));
  box-shadow: inset 0 2px 8px var(--inset), 0 0 0 1px var(--role-color, var(--gold));
}
.form .claim-role-opt input:focus-visible + span {
  border-color: var(--gold);
}
.form input, .form select, .form textarea {
  width: 100%; max-width: 420px; padding: 12px 14px; border-radius: 2px;
  background: #151210;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: inset 0 2px 8px var(--inset);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: inset 0 2px 8px var(--inset), 0 0 0 1px rgba(224, 192, 74, 0.25);
}
.form input, .form select { font-size: 1.05rem; }
.form textarea {
  max-width: 100%;
  min-height: 180px;
  font-family: inherit;
  font-size: 1.02rem;
}
code, kbd, samp {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
.form label.check {
  display: flex; align-items: center; gap: 8px;
  margin: 12px 0; color: var(--text); cursor: pointer; font-size: 1.02rem;
}
.form label.check input { width: auto; margin: 0; }
.time-24 {
  display: flex; align-items: center; gap: 8px;
  max-width: 420px;
}
.time-24 select {
  width: auto; min-width: 80px; flex: 0 0 auto;
  font-variant-numeric: tabular-nums; font-size: 1.05rem;
}
.time-colon {
  color: var(--gold); font-weight: 600; font-size: 1.25rem;
}
.btn {
  display: inline-block;
  margin-top: 14px;
  margin-right: 8px;
  padding: 11px 18px;
  border-radius: 2px;
  border: 1px solid #f0d060;
  cursor: pointer;
  background: linear-gradient(180deg, #f0d060 0%, #c9a227 42%, #8a6820 100%);
  color: #1a1400;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 0 rgba(255, 240, 180, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 220, 0.35),
    0 2px 0 #4a3810,
    0 4px 10px rgba(0, 0, 0, 0.35);
}
.btn:hover {
  filter: brightness(1.06);
  color: #1a1400;
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
}
.btn.secondary {
  background: linear-gradient(180deg, #3a322a, #242018);
  color: var(--text);
  border-color: var(--border-hi);
  text-shadow: none;
  box-shadow: inset 0 1px 0 rgba(255, 220, 150, 0.1), 0 2px 0 #151210;
}
.btn.secondary:hover { color: var(--gold); filter: none; }
.btn.danger {
  background: linear-gradient(180deg, #8a3030, #5a2020);
  color: #fff;
  border-color: #c06060;
  text-shadow: none;
}
pre.export {
  background: #151210;
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: 2px;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 0.95rem;
  box-shadow: inset 0 0 16px var(--inset);
}
.export-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.export-actions .btn { margin-top: 0; }
.actions { margin: 14px 0; }
.foot {
  margin-top: 32px;
  padding: 18px 0 8px;
  border-top: 1px solid rgba(180, 140, 60, 0.22);
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
  letter-spacing: 0.04em;
}
.foot-copy { color: var(--gold-dim); opacity: 0.9; }
.foot-art {
  margin-top: 6px !important;
  margin-bottom: 0 !important;
  font-size: 0.78rem !important;
  opacity: 0.65;
}
/* 새 일정 만들기: 좌측 입력 + 우측 달력 */
.create-top-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.15fr);
  gap: 18px 22px;
  align-items: start;
  margin-bottom: 8px;
}
.create-fields {
  min-width: 0;
}
.create-days-wrap {
  margin-top: 10px;
}
.create-days-wrap input[type="date"] {
  width: 100%;
  max-width: 220px;
  margin-bottom: 6px;
}
.schedule-edit-card {
  margin: 0 0 16px;
  padding: 14px 16px;
}
.schedule-edit-card h3 { margin-top: 0; }
.schedule-edit-fields {
  min-width: 0;
  margin-bottom: 10px;
}
.schedule-edit-fields label {
  display: block;
  margin-top: 8px;
}
.create-cal-wrap {
  min-width: 0;
}
.create-cal {
  padding: 10px;
}
.create-cal .cal-nav,
.create-cal .cal-today {
  cursor: pointer;
  font: inherit;
}
.create-cal-table td {
  height: 42px;
  padding: 2px;
  text-align: center;
  vertical-align: middle;
}
.create-cal-table td:not(.empty):hover {
  background: #2a2218;
}
.create-cal-table td.selected {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
  background: #2a2218;
}
.create-cal-table td.selected.is-day2 {
  outline-color: #7eb6d9;
  background: #1a2830;
}
.create-cal-table td.selected.is-day3 {
  outline-color: #9a7ed9;
  background: #241a30;
}
.create-cal-table td.today:not(.selected) {
  outline: 1px solid var(--gold-dim);
  outline-offset: -1px;
}
.create-cal-table .cal-pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.create-cal-table .cal-pick:hover {
  color: var(--gold);
}
.create-cal-table td.selected .cal-pick {
  color: var(--gold);
}
.create-cal-table td.selected.is-day2 .cal-pick {
  color: #9fd0f0;
}
.create-cal-table td.selected.is-day3 .cal-pick {
  color: #c4a8f0;
}
.cal-day-targets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.cal-day-target,
.cal-day-clear {
  margin: 0;
  padding: 4px 10px;
  border: 1px solid var(--border-hi);
  border-radius: 2px;
  background: linear-gradient(180deg, #3a322a, #242018);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}
.cal-day-target:hover,
.cal-day-clear:hover {
  color: var(--gold);
  border-color: var(--gold);
}
.cal-day-target.is-active {
  color: var(--gold);
  border-color: var(--gold);
  background: linear-gradient(180deg, #4a3e32, #2a241e);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.25);
}
.cal-day-clear {
  margin-left: auto;
  color: var(--muted);
}
.cal-pick-hint {
  margin: 0 0 8px;
}
.raid-kind-radios {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px 22px;
  margin: 8px 0 12px;
}
.form .raid-kind-opt {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.form .raid-kind-opt input[type="radio"] {
  width: auto;
  max-width: none;
  height: auto;
  margin: 0 2px 0 0;
  padding: 0;
  box-shadow: none;
  accent-color: var(--gold);
}
.schedule-edit-top {
  margin-bottom: 12px;
}
@media (max-width: 820px) {
  .create-top-row {
    grid-template-columns: 1fr;
  }
}

.rr-board-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 10px;
}
.rr-board-admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
}
.rr-board-toolbar .rr-board-other {
  margin-top: 0;
  margin-right: 0;
  margin-left: auto;
  padding: 7px 14px;
  font-size: 0.95rem;
}
.rr-inline-form {
  display: inline;
  margin: 0;
}
.rr-admin-manage {
  margin-top: 4px;
}
.rr-admin-manage h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--gold);
}
.rr-party-board-meta {
  margin: 14px 0 6px !important;
  text-align: right;
  white-space: nowrap;
}
.rr-party-board-save-hint {
  margin: 0 0 10px !important;
}
.rr-party-board-form {
  margin: 0;
}
.rr-party-board-savebar {
  position: sticky;
  bottom: 0;
  z-index: 40;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(28, 24, 18, 0.96), rgba(16, 14, 10, 0.98));
  border: 1px solid var(--border-hi);
  border-radius: 2px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
}
.rr-party-board-savebar .meta {
  flex: 1 1 auto;
  margin: 0;
  text-align: left;
  min-width: 0;
}
.rr-party-board-savebar .btn {
  flex: 0 0 auto;
  margin-left: auto;
}
.rr-cell .admin-hint-line > label.special-instant-form {
  flex: 0 0 auto;
  margin: 0;
  cursor: pointer;
}
.rr-cell .admin-filled-row .admin-name-input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  max-width: calc(100% - 54px);
}
.rr-cell .admin-filled-row .cancel-btn {
  flex: 0 0 auto;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  font-size: 0.75rem;
  line-height: 1.2;
  white-space: nowrap;
}

/* 특별석 (채워진 칸·생성/관리 UI) */
.rr-cell.special:not(.claimable),
a.rr-cell.special:not(.claimable) {
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.45);
  background: linear-gradient(180deg, #2a1a3d 0%, #1a1228 100%);
}
.special-badge {
  flex: 0 0 auto;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 5px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
  color: #1a0f2e;
  background: linear-gradient(180deg, #c4b5fd, #8b5cf6);
  border-radius: 2px;
  white-space: nowrap;
}
/* 관리자: 힌트 라인 우측 일반석/특별석 즉시 토글 */
.rr-cell .special-instant-form .special-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 5px;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold-dim);
  border-radius: 2px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
}
.rr-cell .special-instant-form .special-toggle .rt-on { display: none; }
.rr-cell .special-instant-form .special-toggle .rt-off { display: inline; }
.rr-cell .special-instant-form .special-toggle:hover {
  color: #f6e08a;
  border-color: var(--gold);
}
.rr-cell .special-instant-form .special-toggle.on {
  color: #1a0f2e;
  background: linear-gradient(180deg, #c4b5fd, #8b5cf6);
  border-color: #8b5cf6;
}
.rr-cell .special-instant-form .special-toggle.on .rt-off { display: none; }
.rr-cell .special-instant-form .special-toggle.on .rt-on { display: inline; }

/* 관리자: 메모 왼쪽 선수/손님 토글 */
.admin-note-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  min-width: 0;
}
.admin-note-row .guest-instant-form {
  flex: 0 0 auto;
  margin: 0;
  cursor: pointer;
}
.admin-note-row .guest-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 5px;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold-dim);
  border-radius: 2px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.admin-note-row .guest-toggle .rt-on { display: none; }
.admin-note-row .guest-toggle .rt-off { display: inline; }
.admin-note-row .guest-toggle:hover {
  color: #f6e08a;
  border-color: var(--gold);
}
.admin-note-row .guest-toggle.on {
  color: #0f2418;
  background: linear-gradient(180deg, #86efac, #22c55e);
  border-color: #16a34a;
}
.admin-note-row .guest-toggle.on .rt-off { display: none; }
.admin-note-row .guest-toggle.on .rt-on { display: inline; }
.admin-resist-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  min-width: 0;
}
.admin-resist-label {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.admin-resist-opt {
  flex: 0 0 auto;
  margin: 0;
  cursor: pointer;
}
.admin-resist-opt input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.admin-resist-opt span {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.25);
}
.admin-resist-opt input:checked + span {
  color: #1a1408;
  background: linear-gradient(180deg, #f0d060, #c9a227);
  border-color: #f0d060;
}
.resist-icons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}
.resist-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #f0d060;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.resist-chip-label {
  color: inherit;
}
.resist-icon {
  width: 18px;
  height: 18px;
  border-radius: 2px;
  border: 1px solid rgba(201, 162, 39, 0.4);
  object-fit: cover;
  clip-path: inset(6% 6% 6% 6%);
}
.rr-cell .hint-row .resist-mark,
.rr-cand-cell .hint-row .resist-mark {
  margin: 0;
}
.form .claim-resist-opts .resist-icon {
  width: 18px;
  height: 18px;
}
.admin-note-row .admin-note-input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  max-width: none;
  padding: 1px 4px;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--gold);
  background: #1a1612;
  border: 1px solid var(--border-hi);
  border-radius: 2px;
}
.admin-discord-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  min-width: 0;
  color: var(--gold);
}
.admin-discord-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  opacity: 0.9;
}
.admin-discord-icon svg {
  display: block;
}
.admin-discord-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
}
.admin-discord-link:hover .admin-discord-id {
  text-decoration: underline;
}
.admin-discord-id {
  min-width: 0;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-discord-id.is-empty {
  opacity: 0.45;
  font-weight: 500;
}
.special-check {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--gold);
  cursor: pointer;
}
.special-check input { width: auto; margin: 0; }
.special-form { margin-top: 6px; }
.special-map-form {
  margin: 0 0 12px;
  max-width: 640px;
}
.special-map-form .special-pass-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.special-map-form .special-pass-row input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}
.special-map-form .special-pass-row .btn {
  flex: 0 0 auto;
  margin: 0;
  white-space: nowrap;
}
.btn.tiny {
  margin-top: 4px;
  margin-right: 4px;
  padding: 5px 10px;
  font-size: 0.85rem;
}

/* 후보석 (5열 × 2줄) */
.rr-candidates {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(180, 140, 60, 0.25);
}
.rr-candidates-head h3 {
  margin: 0 0 10px;
  font-size: 1.42rem;
  color: var(--gold);
}
.rr-candidates-head .rr-candidates-explain + h3 {
  margin-top: 4px;
}
.rr-candidates-head h3 .meta {
  font-size: 1.02rem;
  font-weight: 400;
}
.rr-candidates-explain {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.rr-candidates-explain strong {
  color: var(--gold);
  font-weight: 700;
}
.rr-cand-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.rr-cand-cell {
  min-height: 88px;
  padding: 8px 6px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--cell);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
}
.rr-cand-cell.admin-cand {
  min-height: 0;
  height: auto;
  gap: 2px;
}
.rr-cand-cell.filled {
  border-color: var(--gold-dim);
}
.rr-cand-cell .hint-row .rr-cand-num {
  margin-left: auto;
  flex: 0 0 auto;
}
.rr-cand-cell .hint {
  font-size: 1.1rem;
  font-weight: 600;
}
.rr-cand-cell > .name {
  display: block;
  margin: 4px 0 0;
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: right;
}
.rr-cand-cell > .name.placeholder {
  text-align: right;
  color: var(--muted);
  font-weight: 400;
  font-size: 1.1rem;
}
/* 신청 취소 = 신청 가능(.claim-label)과 동일 폰트·패딩·너비 */
.rr-cand-cell button.cand-cancel-btn.cancel-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: auto 0 0;
  margin-top: auto;
  padding: 6px 8px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: normal;
  text-align: center;
  border-radius: 3px;
  border: 1px solid #6a3030;
  background: #2a1414;
  color: #ffb0b0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.rr-cand-cell button.cand-cancel-btn.cancel-btn:hover {
  background: #3d1c1c;
  color: #ffd0d0;
}
a.rr-cand-cell.claimable {
  background: linear-gradient(180deg, #1a3d2a 0%, #12281c 100%);
  border: 1px solid #3dba7a;
  box-shadow: 0 0 0 2px rgba(61, 186, 122, 0.35), inset 0 0 18px rgba(61, 186, 122, 0.08);
  animation: claim-pulse 2.2s ease-in-out infinite;
  cursor: pointer;
}
a.rr-cand-cell.claimable:hover {
  background: linear-gradient(180deg, #245a3a 0%, #1a3d2a 100%);
  border-color: #5eeba0;
  box-shadow: 0 0 0 3px rgba(61, 186, 122, 0.5), inset 0 0 22px rgba(61, 186, 122, 0.15);
  animation: none;
}
a.rr-cand-cell.claimable .claim-label {
  display: block;
  margin-top: auto;
  padding: 6px 8px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #0d1a12;
  background: linear-gradient(180deg, #6eefab, #3dba7a);
  border-radius: 3px;
  border: 1px solid #8ff0c0;
}
@media (prefers-reduced-motion: reduce) {
  a.rr-cand-cell.claimable { animation: none; }
}
.rr-cand-num {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
.rr-drag-cand,
.rr-drag-slot {
  cursor: default;
}
.rr-drag-handle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  padding: 2px 3px;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--gold-dim);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 3px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.rr-drag-handle:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(40, 30, 12, 0.55);
}
.rr-drag-cand.is-dragging,
.rr-drag-slot.is-dragging {
  opacity: 0.45;
}
.rr-drag-cand.is-dragging .rr-drag-handle,
.rr-drag-slot.is-dragging .rr-drag-handle {
  cursor: grabbing;
}
.rr-drag-hint {
  margin: 2px 0 0;
  font-size: 0.72rem;
  color: var(--gold);
}
.rr-drop-slot.is-drop-over,
.rr-drop-cand.is-drop-over {
  outline: 2px solid #5eeba0;
  box-shadow: 0 0 0 3px rgba(61, 186, 122, 0.35);
  background: linear-gradient(180deg, #1a3d2a 0%, #12281c 100%);
}

@media (max-width: 720px) {
  body { font-size: 15px; }
  .rr-board { border-spacing: 3px; }
  .rr-cell { min-height: 104px; padding: 8px 4px; }
  .rr-cell.create-cell,
  .rr-cell.admin-cell { min-height: 0; height: auto; padding: 6px 4px; }
  .rr-cell .hint { font-size: 1.02rem; }
  .rr-cell .name { font-size: 1.2rem; }
  .spec-icon { width: 20px; height: 20px; }
  .rr-cand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rr-candidates-explain.seat-guide-blocks {
    grid-template-columns: 1fr;
  }
}

/* ===== Modal ===== */
.rr-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.rr-modal.is-open { display: flex; }
.seat-guide-modal { z-index: 2600; }
.seat-guide-panel {
  padding: 26px 24px 20px;
}
.seat-guide-panel h2 {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 0 12px rgba(224, 192, 74, 0.28);
}
.seat-guide-lead {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
}
.seat-guide-blocks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 18px;
}
.seat-guide-card {
  margin: 0;
  padding: 12px 14px 12px 16px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-left: 4px solid var(--gold);
  border-radius: 2px;
}
.seat-guide-card[data-kind="special"] { border-left-color: #c4b5fd; }
.seat-guide-card[data-kind="bench"] { border-left-color: var(--gold); }
.seat-guide-card[data-kind="guest"] { border-left-color: #7ecb8a; }
.seat-guide-card h3 {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.seat-guide-card[data-kind="special"] h3 { color: #d4c6ff; }
.seat-guide-card[data-kind="guest"] h3 { color: #9ed8a8; }
.seat-guide-card p {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.5;
  word-break: keep-all;
}
.seat-guide-card p:last-child { margin-bottom: 0; }
.rr-candidates-explain.seat-guide-blocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
  padding: 8px;
  border: 1px solid rgba(224, 192, 74, 0.45);
  background: rgba(40, 28, 8, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), 0 0 22px rgba(224, 192, 74, 0.18);
}
.rr-candidates-explain.seat-guide-blocks .seat-guide-card {
  padding: 12px 12px 12px 14px;
  border-color: rgba(255, 236, 180, 0.35);
  animation: seat-guide-pulse-bench 5s ease-in-out infinite;
}
.rr-candidates-explain.seat-guide-blocks .seat-guide-card h3,
.rr-candidates-explain.seat-guide-blocks .seat-guide-card[data-kind="special"] h3,
.rr-candidates-explain.seat-guide-blocks .seat-guide-card[data-kind="guest"] h3 {
  color: #fffdf4;
  font-size: 1.22rem;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}
.rr-candidates-explain.seat-guide-blocks .seat-guide-card p {
  color: #fff8e8;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.45;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}
.rr-candidates-explain.seat-guide-blocks .seat-guide-card[data-kind="special"] {
  animation-name: seat-guide-pulse-special;
  border-left-color: #e9d5ff;
}
.rr-candidates-explain.seat-guide-blocks .seat-guide-card[data-kind="bench"] {
  animation-name: seat-guide-pulse-bench;
  border-left-color: #f6e27a;
}
.rr-candidates-explain.seat-guide-blocks .seat-guide-card[data-kind="guest"] {
  animation-name: seat-guide-pulse-guest;
  border-left-color: #b7f5c8;
}
@keyframes seat-guide-pulse-special {
  0%, 100% {
    background: #1a1028;
    box-shadow: inset 0 0 0 1px rgba(233, 213, 255, 0.12);
  }
  50% {
    background: #7a4fd0;
    box-shadow: 0 0 20px rgba(196, 181, 253, 0.55), inset 0 0 18px rgba(255, 255, 255, 0.1);
  }
}
@keyframes seat-guide-pulse-bench {
  0%, 100% {
    background: #221808;
    box-shadow: inset 0 0 0 1px rgba(246, 226, 122, 0.12);
  }
  50% {
    background: #c9a227;
    box-shadow: 0 0 22px rgba(224, 192, 74, 0.6), inset 0 0 18px rgba(255, 244, 200, 0.18);
  }
}
@keyframes seat-guide-pulse-guest {
  0%, 100% {
    background: #0c1c12;
    box-shadow: inset 0 0 0 1px rgba(183, 245, 200, 0.12);
  }
  50% {
    background: #2f9a58;
    box-shadow: 0 0 20px rgba(110, 239, 171, 0.5), inset 0 0 18px rgba(255, 255, 255, 0.1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .rr-candidates-explain.seat-guide-blocks .seat-guide-card {
    animation: none;
  }
  .rr-candidates-explain.seat-guide-blocks .seat-guide-card[data-kind="special"] {
    background: #5b3aa8;
  }
  .rr-candidates-explain.seat-guide-blocks .seat-guide-card[data-kind="bench"] {
    background: #a8861c;
  }
  .rr-candidates-explain.seat-guide-blocks .seat-guide-card[data-kind="guest"] {
    background: #247848;
  }
}
.seat-guide-modal .rr-modal-actions {
  justify-content: center;
}
.seat-guide-modal .rr-modal-actions .btn {
  min-width: 140px;
}
.rr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 4, 0.72);
  backdrop-filter: blur(2px);
}
.rr-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 22px 22px 18px;
  background: linear-gradient(180deg, #2a241e 0%, #1f1c1a 55%, #181410 100%);
  border: 1px solid var(--border-hi);
  border-radius: 2px;
  box-shadow:
    0 0 0 1px #3a3024,
    0 16px 40px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 220, 150, 0.1);
}
.rr-modal-panel.seat-guide-panel {
  max-width: 720px;
}
.rr-modal-panel h2 {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 1.25rem;
}
.rr-modal-panel .meta,
.rr-modal-panel p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.4;
}
.rr-modal-panel p.field-hint,
.form p.field-hint {
  margin-top: 14px;
  margin-bottom: 16px;
}
#rr-alert-msg,
.rr-alert-msg {
  white-space: pre-line;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.rr-modal-panel .rr-modal-name {
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.rr-modal-panel label {
  display: block;
  margin: 12px 0 6px;
  color: var(--muted);
  font-size: 1.02rem;
}
.rr-modal-panel .pin-input {
  width: 100%;
  max-width: 220px !important;
  padding: 12px 14px;
  border-radius: 2px;
  background: #151210;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: inset 0 2px 8px var(--inset);
}
.rr-modal-panel .rr-cancel-reason {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 64px;
  resize: vertical;
  padding: 10px 12px;
  border-radius: 2px;
  background: #151210;
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  line-height: 1.4;
  box-shadow: inset 0 2px 8px var(--inset);
}
.rr-modal-panel .rr-cancel-reason:focus {
  outline: none;
  border-color: var(--gold);
}
.rr-modal-dl {
  margin: 0 0 12px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(180, 140, 60, 0.22);
  border-radius: 2px;
}
.rr-modal-dl > div {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 6px 10px;
  margin: 0 0 8px;
  align-items: baseline;
}
.rr-modal-dl > div:last-child { margin-bottom: 0; }
.rr-modal-dl dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.rr-modal-dl dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  word-break: break-all;
}
.rr-modal-notice {
  margin: 0 0 4px !important;
  padding: 10px 12px;
  border: 2px solid #fff;
  background: #b02020;
  color: #fff !important;
  font-size: 0.95rem !important;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.rr-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.rr-modal-actions-split {
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}
.rr-modal-actions-split .btn.secondary {
  margin-left: auto;
  margin-right: 0;
}
.rr-modal-actions .btn { margin-top: 0; }
.rr-modal-actions .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.25);
}
.rr-modal-actions .btn.danger,
#claim-confirm-ok {
  max-width: calc(100% - 88px);
  white-space: normal;
  line-height: 1.25;
  text-align: center;
}
.rr-modal-status {
  color: var(--text) !important;
  font-size: 1.08rem !important;
  min-height: 1.5em;
  text-align: center;
  margin: 8px 0 4px !important;
}
.rr-modal-status.is-err { color: #ffb0b0 !important; }
.rr-modal-spinner {
  width: 36px;
  height: 36px;
  margin: 16px auto 4px;
  border: 3px solid rgba(224, 192, 74, 0.22);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: rr-spin 0.8s linear infinite;
}
.rr-modal-spinner.is-done {
  animation: none;
  border-color: var(--gold);
  border-top-color: var(--gold);
  opacity: 0.55;
}
@keyframes rr-spin {
  to { transform: rotate(360deg); }
}
body.rr-modal-open { overflow: hidden; }

/* ===== Discord capture board (PngPreview-like, WoW fonts only here) ===== */
body.capture-body {
  background: #0a0a0a;
  min-height: 100vh;
  margin: 0;
  padding: 16px;
  font-family: var(--font);
}
.capture-toolbar {
  max-width: 960px;
  margin: 0 auto 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: #ccc;
  font-size: 14px;
}
.capture-toolbar .status { flex: 1 1 220px; min-height: 1.2em; }
.capture-toolbar .btn { margin-top: 0; }
.capture-toolbar .guest-label {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.05rem;
}
body.capture-guest .capture-toolbar {
  justify-content: center;
}
body.capture-guest .capture-center {
  /* html-to-image가 opacity를 복제하면 테두리가 사라짐 → 오버레이로만 흐림 */
  position: relative;
  pointer-events: none;
}
body.capture-guest .capture-center::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.65);
  pointer-events: none;
}
.capture-wrap {
  display: inline-block;
  margin: 0 auto;
}
body.capture-body .capture-center {
  text-align: center;
}
#capture-root {
  --cap-bg: rgb(31, 28, 26);
  --cap-panel: rgb(45, 39, 35);
  --cap-header: rgb(56, 48, 42);
  --cap-border: rgb(115, 98, 79);
  --cap-text: rgb(242, 236, 228);
  --cap-muted: rgb(230, 224, 214);
  --cap-accent: rgb(246, 220, 70);
  --cap-frame-color: rgb(186, 142, 58);
  --cap-frame-hi: rgb(214, 178, 92);
  --cap-frame-lo: rgb(82, 54, 16);
  --cap-gutter-color: rgb(12, 10, 8);
  --cap-gutter: 10px;
  --cap-frame: 16px;
  --cap-radius: 20px;
  display: inline-block;
  box-sizing: border-box;
  padding: var(--cap-gutter);
  background: var(--cap-gutter-color);
  border: none;
  color: var(--cap-text);
  font-family: "RR WoW UI", "FrizQT", "RR MaruBuri", sans-serif;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  image-rendering: auto;
}
#capture-root .cap-frame {
  box-sizing: border-box;
  padding: var(--cap-frame);
  border-radius: var(--cap-radius);
  background:
    linear-gradient(160deg, var(--cap-frame-lo) 0%, var(--cap-frame-hi) 38%, var(--cap-frame-color) 52%, var(--cap-frame-lo) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 190, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28);
}
#capture-root .cap-inner {
  position: relative;
  box-sizing: border-box;
  padding: 14px 14px 12px;
  background: var(--cap-bg);
  border-radius: calc(var(--cap-radius) - 10px);
}
#capture-root .rr-cancel-stamp span,
#capture-root .rr-raid-stamp span {
  font-size: 72px;
  letter-spacing: 0.18em;
  padding: 8px 22px 12px;
  border-width: 6px;
}
#capture-root .rr-raid-stamp span {
  --rr-batt-font: 72px;
  height: 96px;
  padding: 0 28px 0 52px;
  border-width: 0;
}
#capture-root .rr-raid-stamp-outline {
  stroke-width: 4.4;
}
#capture-root .rr-raid-stamp[data-len="4"] span,
#capture-root .rr-raid-stamp[data-len="5"] span {
  font-size: 58px;
  letter-spacing: 0.1em;
}
#capture-root .rr-raid-stamp[data-len="6"] span {
  font-size: 52px;
  letter-spacing: 0.1em;
}
#capture-root .rr-raid-stamp[data-len="9"] span,
#capture-root .rr-raid-stamp[data-len="10"] span {
  font-size: 42px;
  letter-spacing: 0.08em;
}
/* 정공 = 기본(옛 금요일 갈색) + 금색 외곽. 막공 = 옛 토요일 청회색 + 은색 외곽 */
#capture-root.kind-booked {
  --cap-frame-color: rgb(186, 142, 58);
  --cap-frame-hi: rgb(214, 178, 92);
  --cap-frame-lo: rgb(82, 54, 16);
  --cap-gutter-color: rgb(12, 10, 8);
}
#capture-root.kind-open,
#capture-root.sat {
  --cap-bg: rgb(26, 28, 36);
  --cap-panel: rgb(38, 42, 54);
  --cap-header: rgb(48, 54, 70);
  --cap-border: rgb(98, 108, 130);
  --cap-muted: rgb(220, 226, 238);
  --cap-frame-color: rgb(176, 182, 194);
  --cap-frame-hi: rgb(214, 218, 226);
  --cap-frame-lo: rgb(62, 66, 76);
  --cap-gutter-color: rgb(10, 12, 18);
}
.cap-info {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  margin-bottom: 8px;
  min-height: 0;
}
.cap-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.cap-title {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--cap-accent);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cap-invite {
  flex: 0 0 auto;
  color: var(--cap-accent);
  font-weight: 700;
  font-size: 11px;
  line-height: 14px;
  white-space: nowrap;
}
.cap-count-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}
.cap-open-note {
  flex: 0 0 auto;
  margin-right: auto;
  padding: 1px 5px;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
  background: #c41e1e;
  border: 1px solid #fff;
  border-radius: 2px;
}
.cap-open-note.is-full {
  background: #1a9d45;
}
.cap-count {
  color: var(--cap-accent);
  font-weight: 600;
  /* 제목(16)보다 한 단계 작게, 예전(11)보다는 크게 — 제목 아래 줄 */
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  text-align: right;
  margin-left: auto;
}
.cap-guide {
  color: var(--cap-accent);
  font-weight: 600;
  font-size: 10px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.95;
}
.cap-grid {
  display: grid;
  grid-template-columns: repeat(var(--cap-cols, 5), 90px);
  column-gap: 2px;
  row-gap: 0;
}
.cap-party {
  height: 16px;
  margin: 1px 0;
  background: var(--cap-header);
  border: 1px solid var(--cap-border);
  color: var(--cap-accent);
  font-weight: 700;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cap-guest {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.1;
  text-align: right;
  white-space: nowrap;
}
.cap-guest-icon {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  display: block;
}
.cap-cell {
  height: 34px;
  margin: 1px 0;
  box-sizing: border-box;
  padding: 2px 3px;
  background: var(--cap-panel);
  border: 1px solid var(--cap-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  min-width: 0;
}
.cap-cell.special {
  background: linear-gradient(180deg, #2a1a3d 0%, #1a1228 100%);
  border-color: #a78bfa;
}
.cap-name.cap-special-label {
  color: #c4b5fd;
  font-weight: 700;
}
.cap-hint-row {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 12px;
  max-width: 100%;
  overflow: hidden;
}
.cap-hint-row img {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  object-fit: cover;
  image-rendering: auto;
}
.cap-hint-row .resist-chip {
  font-size: 10px;
  font-weight: 700;
}
.cap-hint-row .hint-row-end {
  margin-left: auto;
}
.cap-hint {
  font-weight: 400;
  font-size: 11px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1 1 auto;
}
.cap-name {
  font-weight: 700;
  font-size: 10px;
  line-height: 1.1;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--cap-muted);
  max-width: 100%;
  min-width: 0;
}
.cap-cand {
  margin-top: 6px;
}
.cap-cand-head {
  margin: 0 0 2px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  color: var(--cap-accent);
}
.cap-cand-grid {
  display: grid;
  grid-template-columns: repeat(5, 90px);
  gap: 2px;
}
.cap-name.cap-cand-empty {
  color: var(--cap-muted);
  opacity: 0.75;
  font-weight: 600;
}
.cap-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  min-height: 14px;
}
.cap-stamp {
  margin-top: 0;
  margin-left: auto;
  text-align: right;
  color: var(--cap-muted);
  font-weight: 600;
  font-size: 11px;
  height: 14px;
  line-height: 14px;
}

.noshow-add-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 12px;
}
.noshow-add-field {
  flex: 1 1 140px;
  min-width: 120px;
  max-width: 220px;
}
.noshow-add-field input {
  width: 100%;
  max-width: none;
}
.noshow-add-row .btn {
  margin-top: 0;
}
.noshow-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}
.noshow-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.noshow-list .noshow-name {
  color: var(--text);
  font-weight: 600;
}
.noshow-list .noshow-reason {
  margin-left: auto;
  color: var(--gold);
  font-weight: 700;
}
.noshow-del-form {
  margin: 0;
}
.noshow-del-form .btn {
  margin: 0;
  padding: 6px 12px;
  font-size: 0.92rem;
}
.noshow-bulk-form {
  margin-top: 20px;
}
.noshow-bulk-form textarea {
  display: block;
  width: 100%;
  max-width: 420px;
  min-height: 140px;
}
.noshow-bulk-form .btn {
  display: inline-block;
  margin-top: 12px;
}
