.role { font-size: 14px; font-weight: 700; padding: 3px 9px; border-radius: 8px; background: var(--red); color: #fff; }
.me .btn.small { box-shadow: none; }
.topbtn { border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #f7ecdf; border-radius: 10px; padding: 8px 14px; font-size: 16px; font-weight: 700; }
.topbtn:hover { background: rgba(255, 255, 255, .1); }
.topbtn.go { background: var(--red); border-color: var(--red); color: #fff; }
.topbtn.stop { background: #f7ecdf; color: var(--choco); }

.phead { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.phead h2 { margin: 0; }
.phead.tight { margin-bottom: 4px; }
.phead #onlyCustom { margin-left: auto; }
/* 두 가지 보기 전환 */
.seg { margin-left: auto; display: inline-flex; padding: 3px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 6px 14px; border-radius: 9px; font-size: 16px; font-weight: 800; white-space: nowrap; }
.seg button.on { background: var(--choco2); color: #fff; }
.seg button b { margin-left: 2px; color: var(--green); }
.seg button.on b { color: #a6ecd6; }

.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 16px; color: var(--muted); }
.form .field { font-size: 19px; padding: 10px 14px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
/* 번호 칸 아래: 몇 명인지, 또는 무엇이 틀렸는지 */
.numhint { min-height: 18px; margin-top: -2px; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--muted); }
.numhint.bad { color: var(--red); }
.form .formnote { margin: -4px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.form .check { flex-direction: row; align-items: center; gap: 10px; color: var(--ink); }
.form .check input { width: 22px; height: 22px; }

/* 반 목록 */
.classes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: min(980px, 100%); height: min(560px, 100%); }
.classlist { display: flex; flex-direction: column; gap: 10px; }
.classlist .crow { display: flex; gap: 8px; }
.classlist .copen { flex: 1; min-width: 0; gap: 12px; text-align: left; border: 1px solid var(--line); background: var(--soft); border-radius: 14px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; color: var(--ink); }
.classlist .copen:hover { border-color: var(--choco2); }
.classlist .ctext { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.classlist .ctext .sub { white-space: normal; word-break: keep-all; }
.classlist .c { font-size: 26px; font-weight: 900; letter-spacing: .1em; color: var(--red); }
.classlist .cdel { flex: none; border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 14px; padding: 0 14px; font-size: 15px; font-weight: 700; }
.classlist .cdel:hover { border-color: var(--red); color: var(--red); }
.classlist .crow.gone .copen { opacity: .6; }
.classlist .crow.gone .ctext .sub { color: var(--red); }

/* 반 지우기 확인 창 */
#confirm { z-index: 75; }
.cbox { width: min(460px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 10px; padding: 26px 26px 22px; border-radius: 18px; background: var(--card); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.cbox h2 { margin: 0; font-size: 24px; letter-spacing: -0.02em; }
.cbox .what { margin: 0; font-size: 19px; }
.cbox .what span { margin-left: 6px; font-size: 16px; color: var(--muted); font-weight: 700; }
.cbox .sub { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.cbox .warn { margin: 0; padding: 10px 12px; border-radius: 12px; background: #fff1c7; border: 1px solid #ecd58a; color: #6b5310; font-size: 15px; font-weight: 700; }
.cbox label { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; font-size: 15px; font-weight: 700; color: var(--ink); }
.cbox .field { padding: 10px 14px; text-align: center; letter-spacing: .3em; font-size: 26px; font-weight: 800; }
.cbox .err { margin: 0; min-height: 22px; font-size: 15px; }
.cbox .err.prog { color: var(--muted); }
.cbox .cbtns { display: flex; gap: 10px; }
.cbox .cbtns .btn { flex: 1; }
/* 번호 관리 창: 왼쪽 버튼, 오른쪽 설명 */
.mact { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 14px; align-items: center; margin: 4px 0 6px; }
.mact .btn { white-space: nowrap; }
.mact .btn.wipe { color: var(--red); }
.mact p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--muted); }
.cbox label.check { flex-direction: row; align-items: flex-start; gap: 10px; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); font-size: 16px; cursor: pointer; }
.cbox label.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; }
.cbox label.check small { display: block; margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--muted); }

/* 칠판 */
.board { display: grid; grid-template-columns: 1.65fr 1fr; grid-template-rows: auto 1fr; gap: 18px; height: 100%; }
.joincard { flex-direction: row; align-items: center; gap: 36px; padding: 16px 24px; background: var(--choco); color: #f7ecdf; border: 0; }
.joincard .lbl { font-size: 15px; color: #cdb9a7; font-weight: 700; }
.joincard .url { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.joincard .code { font-size: 54px; font-weight: 900; letter-spacing: .14em; color: #ffd77a; line-height: 1; }
.joincard .state { margin-left: auto; text-align: right; font-weight: 800; font-size: 20px; }
.joincard .state .dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; background: #8a7f73; }
.joincard .state.on .dot { background: #52d273; box-shadow: 0 0 0 4px rgba(82, 210, 115, .25); }
.stats { flex-direction: row; justify-content: space-around; align-items: center; padding: 14px; }
.stats .s { text-align: center; }
.stats .s b { display: block; font-size: 40px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; }
.stats .s span { font-size: 15px; color: var(--muted); font-weight: 700; }

.pile {
  flex: 1; min-height: 0; overflow: hidden; border-radius: 14px; padding: 14px;
  background: linear-gradient(180deg, #fbf3e8, #f1e2cf); border: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-content: flex-start; gap: 4px 2px;
}
.pile svg { height: 78px; width: auto; transform: rotate(14deg); }
.pile svg.newp { animation: drop .7s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes drop { from { transform: translateY(-60px) rotate(-30deg) scale(1.6); opacity: 0; } }
.pile .empty { width: 100%; align-self: center; }
.pile svg[data-g] { cursor: pointer; transition: transform .12s; }
.pile svg[data-g]:hover { transform: rotate(14deg) scale(1.35); position: relative; z-index: 1; }

/* 칠판 왼쪽 칸 탭: 우리 반 빼빼로 상자 / 학생별 받은 빼빼로 / 학생별 손에 든 빼빼로 */
.seg.big { margin-left: 0; }
.seg.big button { padding: 8px 16px; font-size: 18px; }

/* 학생별 칸. 칸 수와 그림 크기(--ih)는 화면에 맞춰 스크립트가 정한다. */
.pergrid { flex: 1; min-height: 0; display: grid; gap: 8px; --ih: 48px; }
.pc { min-width: 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; padding: 7px 10px 6px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); }
.pc .ph { display: flex; align-items: baseline; gap: 1px; font-size: 15px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.pc .pn b { font-size: 24px; line-height: 1.1; color: var(--ink); letter-spacing: -0.02em; }
.pc .ph em { margin-left: auto; font-style: normal; }
.pc .ph em b { margin-right: 1px; font-size: 20px; color: var(--ink); }
.pc.zero .ph em b { color: var(--muted); }
.pc .pa { flex: 1; min-height: 0; display: flex; align-items: center; padding-left: 2px; }
.pc .pa svg { flex: none; height: var(--ih); width: auto; margin-right: calc(var(--ih) * -0.05); transform: rotate(14deg); }
.pc .pa svg.newp { animation: drop .7s cubic-bezier(.3, 1.4, .5, 1); }
.pc .pa svg[data-g], .pc .pa svg[data-h] { cursor: pointer; }
.pc .more { flex: none; margin-right: 6px; padding: 2px 7px; border-radius: 8px; background: #efe5d8; font-size: 14px; font-weight: 800; color: var(--muted); }
/* 낮은 칸: 왼쪽에 번호와 개수, 오른쪽에 그림 */
.pergrid.flat .pc { flex-direction: row; align-items: center; gap: 6px; padding: 4px 8px; }
.pergrid.flat .ph { flex: none; width: 48px; flex-direction: column; align-items: flex-start; gap: 0; }
.pergrid.flat .pn b { font-size: 20px; }
.pergrid.flat .ph em { margin-left: 0; font-size: 13px; }
.pergrid.flat .ph em b { font-size: 16px; }
.pergrid.flat .pa { padding: 0; height: 100%; }

/* 상자 속 빼빼로 설명 */
.gtip { position: fixed; z-index: 60; pointer-events: none; max-width: 340px; padding: 10px 14px; border-radius: 12px; background: var(--choco); color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .28); font-size: 17px; line-height: 1.45; }
.gtip b { display: block; font-size: 20px; }
.gtip .rar { margin-right: 4px; }
.gtip .m { margin-top: 4px; color: #f3e3d1; word-break: break-all; }

.feed { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.feed .it { display: flex; gap: 14px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); animation: tin .4s ease; }
.feed .it svg { height: 64px; width: auto; transform: rotate(18deg); flex: none; }
.feed .it .w { font-size: 20px; font-weight: 800; }
.feed .it .w small { font-size: 15px; color: var(--muted); font-weight: 700; margin-left: 6px; }
.feed .it .w .rar { margin-left: 6px; vertical-align: 2px; }
.feed .it .m { font-size: 17px; color: var(--ink); line-height: 1.4; margin-top: 2px; word-break: break-all; }
.feed .it.legend { background: linear-gradient(90deg, #fff4cf, #fffaf0); border-color: #ead18a; }

/* 전설 알림 */
.legendpop { display: flex; flex-direction: column; align-items: center; gap: 14px; color: #fff; text-align: center; position: relative; }
.legendpop .big { font-size: 56px; font-weight: 900; letter-spacing: -0.03em; color: #ffd77a; text-shadow: 0 4px 0 rgba(0, 0, 0, .25); }
.legendpop .who { font-size: 32px; font-weight: 800; }
.legendpop .art svg { height: 360px; width: auto; transform: rotate(16deg); animation: float 2s ease-in-out infinite; --gr: 12px; }
@keyframes float { 50% { transform: rotate(16deg) translateY(-14px); } }

/* 도감 순위 */
.rankview { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; height: 100%; }
.ranklist { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.rk { flex: 1; min-height: 0; max-height: 132px; display: flex; align-items: center; gap: 16px; padding: 0 20px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); overflow: hidden; }
.rk.first { background: linear-gradient(90deg, #fff4cf, #fffaf0); border-color: #ead18a; }
.rk .pos { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--choco2); color: #fff; font-size: 24px; font-weight: 900; }
.rk.first .pos { background: var(--gold); }
.rk .who { flex: none; min-width: 78px; font-size: 30px; font-weight: 900; letter-spacing: -0.02em; }
.rk .arts { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; overflow: hidden; padding: 0 6px; }
.rk .arts svg { flex: none; height: min(84px, 9vh); width: auto; transform: rotate(14deg); }
.rk .cnt { flex: none; font-size: 18px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.rk .cnt b { font-size: 38px; font-weight: 900; color: var(--ink); letter-spacing: -0.03em; margin-right: 2px; }
.rkmore { flex: none; text-align: center; color: var(--muted); font-size: 16px; font-weight: 700; padding: 2px 0; }
.ranklist .empty { margin: auto; }
.classdex { flex: 1; min-height: 0; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(5, minmax(0, 1fr)); align-content: stretch; }
.classdex .tile { min-height: 0; overflow: hidden; padding: 6px 4px; }
.classdex .tile .art { flex: 1; min-height: 0; height: auto; align-items: center; }
.classdex .tile .art svg { height: 100%; max-height: 120px; }
.classdex .tile .nm { font-size: clamp(12px, 1.6vh, 16px); }
.classdex .tile .nm small { font-size: clamp(11px, 1.4vh, 14px); }
.classdex .empty { grid-row: 1 / -1; align-self: center; }

/* 메시지 */
.msgsview { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; height: 100%; }
.tgift { display: flex; gap: 16px; align-items: flex-start; }
.tgift #tgArt svg { height: 150px; width: auto; transform: rotate(16deg); --gr: 4px; }
.tgift textarea.field { height: 110px; font-size: 18px; }
.tgrow { display: flex; flex-direction: column; margin-top: 10px; gap: 8px; }
.tgrow .btn { width: 100%; }
.tginfo { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); font-size: 16px; line-height: 1.7; color: var(--muted); }
.tginfo b { color: var(--ink); }

.tbl { width: 100%; border-collapse: collapse; font-size: 17px; }
.tbl th { position: sticky; top: 0; background: #fff; text-align: left; font-size: 14px; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--line); }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl td.msgcell { word-break: break-all; }
.tbl tr.hid td.msgcell { color: #b9ab9d; text-decoration: line-through; }
.tbl .mini svg { height: 40px; width: auto; transform: rotate(18deg); }
/* 가린 수제 빼빼로: 선생님에게는 흐리게 남겨 무엇을 가렸는지 알 수 있게 한다 */
.tbl tr.hid.cus .pname { color: #b9ab9d; text-decoration: line-through; }
.tbl tr.hid.cus .mini svg { opacity: .35; }
.tbl .ok { color: #2f9e55; font-weight: 800; }
.tbl .no { color: #b9ab9d; }
.tbl td.acts { white-space: nowrap; }
/* 표 안 버튼 글자는 한 줄로 ('가리기'가 '가리/기'로 꺾이지 않게) */
.tbl .btn { white-space: nowrap; }
/* 학생 표 위: 번호 추가 */
.addnum { display: flex; gap: 8px; margin-left: auto; }
.addnum .field { width: 84px; padding: 6px 10px; font-size: 17px; text-align: center; border-radius: 10px; }
.tbl .btn.wipe { color: var(--red); }
/* 번호 목록에서 뺐지만 기록이 남은 번호 */
.tbl tr.out td { color: var(--muted); }
.outtag { margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: #efe9e1; font-size: 12px; font-weight: 700; color: var(--muted); vertical-align: 2px; }

.pinbtn { border: 1px dashed var(--line); background: var(--soft); border-radius: 8px; padding: 4px 10px; font-size: 16px; font-weight: 800; letter-spacing: .12em; color: var(--ink); min-width: 74px; }

/* 입장 카드 인쇄 */
#printArea, #reportArea { display: none; }
@media print {
  @page { size: A4; margin: 10mm; }
  html, body { height: auto; overflow: visible; background: #fff; }
  body:not(.print-report) > *:not(#printArea) { display: none !important; }
  body.print-report > *:not(#reportArea) { display: none !important; }
  body.print-report #reportArea { display: block; }
  #printArea { display: grid; grid-template-columns: repeat(3, 1fr); }
  .pcard { border: 1px dashed #999; padding: 4mm 5mm; height: 26mm; display: flex; flex-direction: column; justify-content: center; break-inside: avoid; font-size: 10pt; color: #000; }
  .pcard .h { display: flex; justify-content: space-between; font-size: 9pt; color: #555; }
  .pcard .n { font-size: 16pt; font-weight: 900; margin: 1mm 0; }
  .pcard .p { font-size: 13pt; }
  .pcard .p b { font-size: 16pt; letter-spacing: .15em; }
}

/* 설정 */
.setview { display: grid; grid-template-columns: 1fr 1.6fr; gap: 20px; height: 100%; }
.setview > .panel:first-child { overflow-y: auto; }
.bonus { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); }
.bonus .bbtns { flex: none; display: flex; gap: 8px; }
/* 노트북처럼 낮은 화면: 설정 칸 간격을 줄여 한 화면에 */
@media (max-height: 820px) and (min-width: 761px) {
  .setview .panel { padding: 16px 18px; }
  .setview .form { gap: 7px; }
  .setview .form label { gap: 3px; font-size: 15px; }
  .setview .form .field { padding: 6px 12px; font-size: 17px; }
  .setview .form .formnote { font-size: 13px; line-height: 1.35; }
  .setview .form .check input { width: 18px; height: 18px; }
  .setview .bonus { padding: 8px 12px; }
}

/* 휴대폰: 위쪽 막대는 세 줄(로고·사용법 / 버튼 / 탭), 패널은 위아래로 쌓고 표는 옆으로 밀어 본다 */
@media (max-width: 760px) {
  .topbar { position: static; }
  #guideBtn { margin-left: auto; }
  #me { order: 5; width: 100%; margin-left: 0; flex-wrap: wrap; justify-content: flex-start; }
  #me:empty { display: none; }
  #fullBtn { display: none; }
  .topbtn { padding: 6px 10px; font-size: 14px; }
  .role { font-size: 12px; padding: 2px 7px; }
  .classes, .board, .rankview, .msgsview, .setview { grid-template-columns: minmax(0, 1fr); height: auto; gap: 12px; }
  .classes { width: 100%; }
  .board { grid-template-rows: none; }
  .joincard { flex-wrap: wrap; gap: 10px 24px; padding: 14px 16px; }
  .joincard .url { font-size: 20px; }
  .joincard .code { font-size: 40px; }
  .joincard .state { margin-left: 0; text-align: left; }
  .stats .s b { font-size: 28px; }
  .pile { min-height: 220px; max-height: 360px; }
  .pile svg { height: 56px; }
  .seg.big { display: flex; width: 100%; }
  .seg.big button { flex: 1; padding: 6px 6px; font-size: 14px; white-space: normal; word-break: keep-all; line-height: 1.25; }
  .pergrid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 86px; }
  .pc .pn b { font-size: 20px; }
  .feed { overflow: visible; }
  .feed .it .w { font-size: 17px; }
  .phead { gap: 6px 10px; }
  .seg { margin-left: 0; }
  .rk { flex: none; height: 76px; padding: 0 12px; gap: 10px; }
  .rk .pos { width: 36px; height: 36px; font-size: 18px; }
  .rk .who { min-width: 56px; font-size: 22px; }
  .rk .arts svg { height: 46px; }
  .rk .cnt b { font-size: 28px; }
  .classdex { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: none; }
  .classdex .tile .art { flex: none; height: 76px; }
  .tgift { flex-direction: column; align-items: stretch; }
  .tgift #tgArt svg { height: 110px; }
  .setview > .panel:first-child { overflow: visible; }
  .form .three { grid-template-columns: 1fr 1fr; }
  .form .three label:first-child { grid-column: 1 / -1; }
  .scroll:has(> .tbl) { overflow-x: auto; }
  /* 학생 표는 칸을 줄이지 않고 옆으로 밀어 본다. 줄이면 글자가 한 자씩 꺾인다. */
  #stuTable { width: max-content; min-width: 100%; }
  #stuTable th, #stuTable td { white-space: nowrap; }
  .tbl { font-size: 15px; }
  .tbl th, .tbl td { padding: 7px 8px; }
  /* 메시지 표는 한 줄씩 카드로: 시간·누가→누구 / 빼빼로 / 메시지, 오른쪽에 가리기 */
  #msgTable, #msgTable tbody { display: block; }
  #msgTable tr:first-child { display: none; }
  #msgTable tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "time who btn" "pep pep btn" "msg msg msg"; gap: 4px 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
  #msgTable td { padding: 0; border: 0; }
  #msgTable td:nth-child(1) { grid-area: time; }
  #msgTable td:nth-child(2) { grid-area: who; }
  #msgTable td:nth-child(3) { grid-area: pep; }
  #msgTable td:nth-child(4) { grid-area: msg; }
  #msgTable td:nth-child(5) { grid-area: btn; align-self: center; }
  #msgTable td.empty { grid-column: 1 / -1; }
}

/* 교사용 보고서(컬러). 인쇄할 때만 보인다. 화면 미리보기는 #reportArea.show */
#reportArea.show { display: block; position: fixed; inset: 0; z-index: 90; overflow: auto; background: #777; padding: 20px 0; }
#reportArea.show .rp { width: 210mm; margin: 0 auto; background: #fff; padding: 12mm; box-shadow: 0 4px 20px rgba(0, 0, 0, .3); }
.rp { color: #2a1d16; font-size: 10.5pt; line-height: 1.45; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.rp .rph { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 14px 18px; border-radius: 12px; background: #3b2216; color: #f7ecdf; }
.rp .rph span { color: #ffd77a; font-weight: 800; font-size: 10pt; }
.rp .rph h1 { margin: 2px 0 0; font-size: 22pt; letter-spacing: -0.02em; color: #fff; }
.rp .rph .meta { text-align: right; font-size: 9pt; color: #cdb9a7; }
.rp .rcards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 10px 0 4px; }
.rp .rcards div { text-align: center; padding: 8px 4px; border-radius: 10px; background: #faf6f0; border: 1px solid #e6dccf; }
.rp .rcards b { display: block; font-size: 17pt; letter-spacing: -0.02em; }
.rp .rcards b small { font-size: 10pt; color: #7d6d61; }
.rp .rcards span { font-size: 8.5pt; color: #7d6d61; font-weight: 700; }
.rp h2 { margin: 14px 0 6px; font-size: 13pt; }
.rp h2 small { font-size: 8.5pt; color: #7d6d61; font-weight: 600; margin-left: 6px; }
.rp h2.brk { break-before: page; }
.rp .rdex { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.rp .dt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 2px 4px; border-radius: 8px; border: 1px solid #e6dccf; text-align: center; font-size: 7.5pt; font-weight: 700; }
.rp .dt svg { height: 42px; width: auto; transform: rotate(16deg); }
.rp .dt.rare { border-color: #c3d5f4; background: #f3f7ff; }
.rp .dt.legend { border-color: #ead18a; background: #fffaea; }
.rp .dt.lock { color: #b9ab9d; }
.rp .dt svg.lock { filter: brightness(0); opacity: .15; }
.rp .dt i { position: absolute; top: 3px; right: 5px; font-style: normal; color: #7d6d61; font-size: 7pt; }
.rp .stu { break-inside: avoid; margin: 0 0 8px; border: 1px solid #e6dccf; border-radius: 10px; padding: 7px 10px 8px; }
.rp .stu h3 { margin: 0 0 5px; display: flex; align-items: baseline; gap: 10px; font-size: 12pt; }
.rp .stu h3 span { color: #d8323c; }
.rp .stu h3 small { font-size: 8.5pt; color: #7d6d61; font-weight: 600; }
.rp .stu h3 small b { color: #2a1d16; }
.rp .stu ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.rp .stu li { display: flex; gap: 6px; align-items: flex-start; break-inside: avoid; }
.rp .stu li svg { flex: none; height: 30px; width: auto; transform: rotate(16deg); margin-top: 1px; }
.rp .stu li b { font-size: 9pt; margin-right: 4px; }
.rp .stu li em { font-style: normal; font-size: 8pt; color: #7d6d61; margin-left: 4px; }
.rp .stu li p { margin: 1px 0 0; font-size: 9pt; word-break: break-all; }
.rp .stu li p.hid { color: #b9ab9d; }
.rp .rb { display: inline-block; padding: 0 5px; border-radius: 4px; color: #fff; font-size: 7pt; font-weight: 800; vertical-align: 1px; }
.rp .none { margin: 0; font-size: 9pt; color: #b9ab9d; }
.rp .rcus { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.rp .rcus div { display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border-radius: 8px; border: 1px solid #a9dccb; background: #effaf6; text-align: center; break-inside: avoid; }
.rp .rcus svg { height: 52px; width: auto; transform: rotate(16deg); }
.rp .rcus b { font-size: 8pt; }
.rp .rcus span { font-size: 7pt; color: #7d6d61; }
.rp footer { margin-top: 10px; text-align: center; font-size: 8pt; color: #7d6d61; }
