/* GAME BAR GUILD — dark gothic theme shared by member PWA and staff page */
:root {
  --bg: #0d0b10;
  --panel: #1a1622;
  --panel2: #241d31;
  --line: #3a3049;
  --text: #ece7f2;
  --muted: #a79db8;
  --accent: #b3122e;
  --accent2: #e3b341;
  --ok: #3fae6a;
  --ng: #e84f6e;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg) radial-gradient(ellipse at top, #1d1526 0, var(--bg) 60%);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  min-height: 100vh;
}
.wrap { max-width: 560px; margin: 0 auto; padding: 16px 14px 48px; }
.wrap.narrow { max-width: 420px; }
.brand { text-align: center; margin: 10px 0 18px; }
.brand .logo { width: 120px; max-width: 50vw; }
.shopname { letter-spacing: .35em; font-weight: 700; margin: 6px 0 2px; color: var(--accent2); }
.sub { color: var(--muted); font-size: 13px; margin: 0; }
.panel {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin: 0 0 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,.45);
}
.panel h2 { font-size: 16px; margin: 0 0 12px; border-left: 4px solid var(--accent); padding-left: 8px; }
label.f { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
input, textarea, select {
  width: 100%; padding: 11px; border-radius: 8px; border: 1px solid var(--line);
  background: #100d16; color: var(--text); font-size: 16px;
}
button {
  cursor: pointer; border: 1px solid var(--line); background: var(--panel2); color: var(--text);
  border-radius: 8px; padding: 11px 14px; font-size: 15px;
}
.btn-primary {
  width: 100%; margin-top: 14px; background: linear-gradient(180deg, #d21f3c, var(--accent));
  border-color: #5e0a1a; color: #fff; font-weight: 700; letter-spacing: .08em;
}
.btn-gold { background: linear-gradient(180deg, #c9a227, #8a6d14); border-color: #57450c; color: #fff; font-weight: 700; }
button:disabled { opacity: .38; cursor: not-allowed; }
.error { background: #3d1220; border: 1px solid var(--ng); color: #ffb3c1; border-radius: 8px; padding: 10px 12px; margin: 0 0 12px; font-size: 14px; }
.notice { background: #14261b; border: 1px solid var(--ok); color: #b9e8cc; border-radius: 8px; padding: 10px 12px; margin: 0 0 12px; font-size: 14px; }
.small { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.hidden { display: none !important; }

/* member card */
.card {
  border-radius: 16px; padding: 20px 18px; text-align: center; color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 8px 28px rgba(0,0,0,.6), inset 0 0 42px rgba(0,0,0,.45);
  margin-bottom: 14px;
}
.card .rankname { font-size: 26px; font-weight: 800; letter-spacing: .12em; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.card .cardno { font-size: 19px; letter-spacing: .18em; margin-top: 2px; }
.card .membername { font-size: 16px; margin-top: 2px; opacity: .92; }
.card canvas { background: #fff; border-radius: 10px; margin: 14px auto 6px; display: block; max-width: 62vw; height: auto; }
.balance { font-size: 34px; font-weight: 800; }
.balance small { font-size: 15px; font-weight: 400; }
.progress { height: 10px; background: rgba(0,0,0,.4); border-radius: 6px; overflow: hidden; margin: 8px 0 4px; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--accent2), #fff2c4); }
.stats { display: flex; gap: 8px; margin-bottom: 14px; }
.stats .stat { flex: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 6px; text-align: center; }
.stats .stat b { display: block; font-size: 19px; }
.stats .stat span { font-size: 11.5px; color: var(--muted); }
table.hist { width: 100%; border-collapse: collapse; font-size: 14px; }
table.hist td, table.hist th { padding: 7px 4px; border-bottom: 1px solid var(--line); text-align: left; }
table.hist td.pts { text-align: right; font-weight: 700; white-space: nowrap; }
.plus { color: var(--ok); } .minus { color: var(--ng); }
.rewardrow, .linkrow { display: flex; justify-content: space-between; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.rewardrow:last-child, .linkrow:last-child { border-bottom: none; }
.cost { color: var(--accent2); font-weight: 700; white-space: nowrap; }
a.linkbtn { color: var(--text); text-decoration: none; display: block; width: 100%; }
.perk { background: #2b2110; border: 1px solid var(--accent2); color: #ffe9a8; border-radius: 8px; padding: 9px 12px; margin: 0 0 8px; font-size: 14px; }
.ann h3 { margin: 0 0 4px; font-size: 15px; }
.ann .date { font-size: 11.5px; color: var(--muted); }
.ann p { margin: 4px 0 10px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.rowflex { display: flex; gap: 8px; }
.rowflex > * { flex: 1; }
video.scan { width: 100%; border-radius: 10px; background: #000; }
.memberhit { padding: 10px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.memberhit b { font-size: 16px; }
.chip { display: inline-block; font-size: 11px; border: 1px solid var(--line); border-radius: 20px; padding: 2px 8px; color: var(--muted); margin-left: 6px; }
