/* 퀴즈나라 candy rooms: bright paper panels, rounded fitting rooms and readable forms.
   The candy-controls layer owns button surfaces; this file owns their room layout. */

.pnl {
  min-width: 0;
  min-height: 0;
  color: #24506e;
  background: linear-gradient(180deg, #ffffff 0%, #fffdf1 100%);
  border: 3px solid #39c1d9;
  border-radius: 27px;
  box-shadow: inset 0 2px 0 #fff, inset 0 -3px 0 #cfedf0, 0 5px 0 #1893af, 0 10px 20px #1b748f19;
}
.pnl-h {
  min-height: 46px;
  padding: 10px 18px;
  color: #fff;
  background: linear-gradient(#87eef7 0%, #34cedf 43%, #16bbd3 48%, #119abf 100%);
  border-radius: 23px 23px 0 0;
  border-bottom: 2px solid #179ab3;
  box-shadow: inset 0 2px 0 #e9ffff;
  text-shadow: 0 2px 0 #15869d;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.pnl-h::before {
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #fff7ae, #ffd141);
  border: 1px solid #d3a020;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 #cf931d;
  transform: rotate(45deg);
}
.inp {
  min-width: 0;
  color: #28516a;
  background: #fff;
  border: 2px solid #95d8e4;
  border-radius: 15px;
  box-shadow: inset 0 3px 0 #e9f5f6;
  outline: none;
  padding: 11px 13px;
}
.inp:focus {
  color: #1b4e6c;
  background: #fff;
  border-color: #11b4d2;
  box-shadow: inset 0 3px 0 #eafafb, 0 0 0 3px #f8d77580;
}
.hint { color: #527085; }

/* The illustrated candy sky is shared with the lobby behind this invitation. */
#login {
  padding: 24px;
  background: transparent;
  overflow-y: auto;
  overflow-x: hidden;
  place-content: normal center;
  align-items: safe center;
}
#login::before { display: none; }
.lgMid { width: min(480px, 100%); }
.lgPanel {
  position: relative;
  margin-top: 22px;
  padding: 23px 24px 22px; /* 아래 여백을 위와 맞춤(C15, 2026-10-25): 메시지 칸이 비면 숨긴다(.lgMsg:empty) */
  background: linear-gradient(#fff, #fffdef);
  border: 4px solid #fff;
  border-radius: 30px;
  box-shadow: inset 0 0 0 2px #75dae7, inset 0 -5px 0 #d0f1f2, 0 7px 0 #189bb9, 0 13px 22px #07889726;
}
.lgTitle {
  margin: 0 0 17px;
  padding-left: 0;
  color: #158aa8;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: .02em;
  font-weight: 800;
  text-shadow: 0 2px 0 #d3f3f6;
}
.lgForm { grid-template-columns: 64px minmax(0, 1fr) 104px; gap: 11px 8px; }
.lgForm label, .lgSex label { color: #507181; font-size: 14px; line-height: 1.4; font-weight: 800; text-shadow: none; white-space: nowrap; }
.lgForm .inp { height: 46px; padding: 10px 11px; font-size: 15px; }
.lgGoBtn { min-height: 103px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; }
.lgDots { height: 46px; border: 2px solid #95d8e4; border-radius: 15px; background: #fff; box-shadow: inset 0 3px 0 #e9f5f6; gap: 11px; }

.lgWide { margin-top: 17px; padding: 12px 7px; }
.lgWide.ex { margin-top: 11px; padding: 10px 7px; }
.lgMsg { margin-top: 13px; color: #526f82; font-size: 13px; }
.lgMsg b { color: #168dab; }
.lgSex { grid-template-columns: 64px minmax(0, 1fr); gap: 8px; margin-bottom: 12px; }
/* 가입: 첫 피부색(무료) 단추 7개(LPC 피부색, 2026-10-25). 고른 색은 노란 테두리. */
#lgSkin { display: flex; flex-wrap: wrap; gap: 6px; }
#lgSkin button { width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 2px solid var(--bu-cap-line); cursor: pointer; box-shadow: inset 0 -3px 0 #0003; }
#lgSkin button[aria-pressed="true"] { outline: 3px solid #ffd23a; outline-offset: 1px; }
#lgSkin button:focus-visible { outline: 3px solid #fff; outline-offset: 1px; }

.tabs { gap: 7px; padding: 10px 13px 13px; background: #fffdf3; border-bottom: 2px solid #d5edf0; }
.tab { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 10px; font-size: 13px; line-height: 1.3; }
.tab .candy-icon { width: 16px; height: 16px; }

/* Teacher tools and dialogs share the same readable invitation cards. */
.tsplit { inset: var(--qp-top-height) 0 0; padding: 22px; gap: 22px; }
.tsplit > .pnl { overflow: hidden; }
.setrow { background: #fff; color: #376880; border: 2px solid #cfedf0; border-radius: 15px; padding: 10px 12px; }
.setrow { margin-bottom: 10px; }
.setrow.on { background: #fff5d6; border-color: #f1cb58; box-shadow: 0 2px 0 #e5c16b; }
.setrow .sn { color: #28718a; }
.setrow .sc { color: #7592a2; font-size: 13px; }

.tt { color: #197c9f; background: #ecfbfc; border: 2px solid #91dbe4; border-radius: 17px; box-shadow: 0 3px 0 #63b9c6; }
#modal { padding: 20px; background: #246c8b80; }
.mbox { width: min(590px, 94vw); max-height: 88vh; border: 4px solid #fff; border-radius: 29px; overflow: auto; }
.mbody { color: #345f77; background: #fffdf4; padding: 20px; border-radius: 0 0 24px 24px; }
#avatarSexChoices > .f1 { background: #edfafa !important; border: 2px solid #9bdfe3 !important; border-radius: 20px !important; }
.rank { gap: 9px; padding: 9px 10px; background: #fff; border: 2px solid #d1edef; border-radius: 15px; box-shadow: 0 2px 0 #dfedef; }
.rank .no { width: 30px; height: 30px; color: #fff; background: linear-gradient(#70e3f0, #1bb5d3); border: 1px solid #1ea6bc; border-radius: 50%; box-shadow: inset 0 1px 0 #e0ffff, 0 2px 0 #1a9aac; }
.rank .rn { color: #32728c; font-size: 14px; }
.rank .rs { color: #228dab; font-size: 16px; }
.rank.me { background: #fff5d3; border-color: #efcd5e; }
.rank.t1 .no { color: #996e12; background: linear-gradient(#fff3a8, #ffd849 48%, #efb722); border-color: #d3a622; box-shadow: inset 0 1px 0 #ffffdf, 0 2px 0 #bb8927; }
.rank.t2 .no { color: #647e8e; background: linear-gradient(#f9feff, #d7e6ec 48%, #b8cfdc); border-color: #9ab9c6; box-shadow: inset 0 1px 0 #fff, 0 2px 0 #829dac; }
.rank.t3 .no { color: #9a6338; background: linear-gradient(#fff1d9, #f1c892 48%, #d8a169); border-color: #c28d5d; box-shadow: inset 0 1px 0 #fff7e3, 0 2px 0 #b27d4e; }

@media (min-width: 661px) and (max-height: 820px) {
  .pnl-h { min-height: 43px; padding-block: 9px; }
  .lgMid { width: min(445px, 100%); }
  .lgPanel { margin-top: 19px; padding: 18px 22px 18px; }
  .lgTitle { margin-bottom: 14px; }
}
@media (min-width: 661px) and (max-width: 1150px) {
  .tabs { gap: 6px; padding: 10px 11px 12px; }
  
  
}
@media (min-width: 661px) and (max-height: 690px) {
  #login { padding: 15px 22px; }
  .lgPanel { margin-top: 16px; padding: 15px 21px 15px; }
  .lgTitle { margin-bottom: 11px; font-size: 19px; }
  .lgForm { gap: 9px 8px; }
  
  
  .lgWide { margin-top: 13px; padding-block: 10px; }
  .lgWide.ex { margin-top: 10px; padding-block: 8px; }
  .lgMsg { margin-top: 10px; }
  #login:has(.lgSex:not(.hide)) { padding-block: 10px; }
  #login:has(.lgSex:not(.hide)) .logo { --candy-logo-size: 45px; }
  #login:has(.lgSex:not(.hide)) .logo small { margin-top: 5px; font-size: 12px; }
  #login:has(.lgSex:not(.hide)) .lgPanel { margin-top: 10px; padding-block: 12px; }
  .tabs { gap: 6px; padding-top: 8px; padding-bottom: 11px; }
  .tsplit { padding: 17px; gap: 17px; }
}
@media (max-width: 660px) {
  .pnl { border-radius: 25px; }
  .pnl-h { min-height: 43px; padding: 10px 14px; font-size: 15px; border-radius: 21px 21px 0 0; }
  #login { padding: 23px 16px; place-content: start center; }
  .lgMid { width: min(425px, 100%); margin-block: auto; }
  .lgPanel { margin-top: 20px; padding: 19px 15px 19px; border-radius: 27px; }
  .lgTitle { font-size: 20px; margin-bottom: 15px; }
  .lgForm { grid-template-columns: 50px minmax(0, 1fr) 88px; gap: 11px 6px; }
  .lgForm label, .lgSex label { font-size: 12px; }
  .lgForm .inp { font-size: 14px; padding-inline: 9px; }
  .lgSex { grid-template-columns: 50px minmax(0, 1fr); }
  
  
  .lgWide { margin-top: 17px; }
  .lgWide.ex { margin-top: 12px; }
  .tabs { gap: 7px; padding: 10px 10px 13px; }
  .tab { font-size: 12px; padding: 8px 9px; }
  .tsplit { display: flex; flex-direction: column; padding: 14px; gap: 19px; overflow-y: auto; }
  .tsplit > .pnl { flex-shrink: 0; min-height: 300px; }
  .setrow { padding: 9px; gap: 7px; font-size: 12px; }
  
  #modal { padding: 13px; }
  .mbox { width: min(590px, 100%); max-height: 90vh; }
  .mbody { padding: 17px 14px; }
  .rank { padding: 8px; }
  .rank .rn { font-size: 13px; }
  .rank .rs { font-size: 14px; }
}
