/* Original bunny and sheep sticker set, sized for mobile first. */
.hero h1 span { display: block; white-space: nowrap; }
.launch-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.launch-heading h2 { margin-bottom: 10px; }
.launch-heading > span { color: #936572; font: 14px var(--play); white-space: nowrap; }
.launch-players { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 11px; }
.launch-players span { padding: 5px 10px; border: 1.5px solid #d5aba3; border-radius: 999px; background: #fff2e8; color: #765857; font: 14px var(--play); }
.launch-players span:last-child { background: #f1f8f4; border-color: #afc9b9; }
.ready-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ready-steps span { padding: 5px 9px; border: 1px dashed #cfaaaa; border-radius: 10px; background: #fff9f2; color: #936f72; font-size: 12px; }
.ready-steps span.done { border-style: solid; border-color: #9dbda9; background: #edf8ee; color: #4f7965; }
.launch-note { margin: 12px 0 0; }
.guest-wait { margin: 0; padding: 10px 0; }
.info-disclosure summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; font: 20px var(--play); color: #654a43; }
.info-disclosure summary::-webkit-details-marker { display: none; }
.info-disclosure summary::after { content: '⌄'; color: #a57982; font-size: 23px; transition: transform .2s; }
.info-disclosure[open] summary::after { transform: rotate(180deg); }
.info-disclosure .subtle { margin: 7px 0 12px; }
.map-filters { display: flex; gap: 7px; overflow-x: auto; padding: 1px 2px 10px; scrollbar-width: thin; }
.map-filter { flex: none; min-height: 44px; padding: 6px 10px; border: 1.5px solid #c9aaa4; border-radius: 999px; background: #fff9ef; color: #765c58; font: 14px var(--play); white-space: nowrap; }
.map-filter.active { background: #f8d3dc; border-color: #a67780; box-shadow: 0 2px 0 #d8abae; }
.map-filter span { margin-left: 3px; color: #947e7a; font: 700 11px 'Nunito', sans-serif; }
.library details.library-card { display: block; min-height: 0; padding: 0; overflow: hidden; }
.library details.library-card::after { display: none; }
.library-card summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 60px; padding: 9px 13px; cursor: pointer; list-style: none; }
.library-card summary::-webkit-details-marker { display: none; }
.card-summary-title { display: flex; align-items: center; gap: 7px; min-width: 0; }
.card-summary-title strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 20px var(--play); color: #654a43; }
.card-summary-title small { flex: none; padding: 3px 6px; border-radius: 7px; background: #fffdf8; color: #8b7273; font: 11px 'Nunito','Noto Sans SC',sans-serif; }
.card-expand { color: #ad7f89; font-size: 22px; line-height: 1; transition: transform .2s; }
.library-card[open] .card-expand { transform: rotate(180deg); }
.card-body { padding: 11px 13px 13px; border-top: 1px dashed #dfc5bd; }
.card-body p { margin: 0 0 10px; white-space: pre-wrap; line-height: 1.65; }
.task-card-meta { margin-bottom: 7px; color: #947076; font: 12px 'Nunito','Noto Sans SC',sans-serif; }
.card-body .card-actions { margin-top: 8px; }
.card-body .text-button { min-height: 44px; padding: 7px 14px; font-size: 13px; text-decoration: none; }
.card-body .text-button::before { display: none; }
.library-heading .ticket.small { min-width: 0; min-height: 44px; padding-inline: 19px; white-space: nowrap; }
.lobby-title {
  position: relative;
  align-items: center;
  min-height: 160px;
  padding: 14px 18px 16px;
  border: 2px dashed #c9a7a0;
  border-radius: 24px;
  background: linear-gradient(125deg, #fffaf0 0%, #fff1e9 53%, #e2f3f2 100%);
  box-shadow: 0 5px 0 #d7bbb4;
}
.lobby-title .title-copy { position: relative; z-index: 1; }
.lobby-title h1 {
  max-width: 680px;
  font-family: var(--play);
  font-size: clamp(29px, 3.8vw, 43px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: .01em;
  color: #76514f;
  text-shadow: 1px 2px 0 #fffdf7;
}
.game-title h1 {
  font-family: var(--play);
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.3;
  color: #76514f;
  text-shadow: 1px 2px 0 #fffdf7;
}
.lobby-title h1 span { display: inline-block; white-space: nowrap; }
.lobby-title h1 span:last-child {
  position: relative;
  z-index: 0;
}
.lobby-title h1 span:last-child::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: 2%; right: 0; bottom: 1px;
  height: .38em;
  border-radius: 100%;
  background: #f9d2dc;
  transform: rotate(-1deg);
}
.lobby-title p { max-width: 680px; }
.title-stickers {
  position: relative;
  width: 208px;
  min-width: 208px;
  height: 139px;
  margin-right: 8px;
}
.title-stickers img {
  position: absolute;
  width: 118px;
  height: 118px;
  object-fit: contain;
  filter: drop-shadow(3px 5px 0 #d2aaa5);
}
.title-stickers .title-duo {
  left: 0; top: -16px;
  width: 208px; height: 155px;
  transform: rotate(-4deg);
  filter: drop-shadow(3px 5px 0 #d2aaa5);
}
.title-bunny { left: 0; top: -3px; transform: rotate(-9deg); }
.title-sheep { right: 0; top: 9px; transform: rotate(10deg); }
.title-stickers span {
  position: absolute;
  right: 17px;
  bottom: 3px;
  transform: rotate(-5deg);
  font: 900 13px 'Nunito', sans-serif;
  color: #a36c79;
  white-space: nowrap;
}
.hero-art .art-card.two img { width: 145px; height: 145px; object-fit: contain; }
.hero-art .art-card.one img { transform: rotate(-3deg); }
.hero-art .art-card.two img { transform: rotate(4deg); }
.hero-board-sticker {
  position: absolute;
  width: min(100%, 440px);
  height: 100%;
  left: 50%; top: 0;
  transform: translateX(-50%) rotate(-3deg);
  object-fit: contain;
  filter: drop-shadow(7px 9px 0 #dbb7b6);
}
.game-title { position: relative; align-items: center; }
.game-title-sticker {
  width: 125px;
  height: 88px;
  object-fit: contain;
  margin-left: auto;
  filter: drop-shadow(2px 4px 0 #dfbdbe);
}
.game-title .ticket { margin-left: 4px; }
.preview-panel .preview-bunny { width: 215px; height: 140px; }
.library-heading h2::after {
  content: ' ✧';
  color: #d994a4;
}
.finish-prize-editor form { display: grid; gap: 8px; }
.finish-prize-editor label { font: 20px var(--play); color: #825d65; }
.finish-prize-editor textarea {
  width: 100%; min-height: 83px; resize: vertical;
  border: 2px solid #cda7aa; border-radius: 16px;
  background: #fffdf6; color: var(--ink);
  padding: 11px 12px; line-height: 1.5;
}
.finish-prize-editor .ticket { justify-self: start; }
.piece-legend {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  justify-content: center; align-items: center;
  margin: 2px 0 12px;
}
.piece-legend span {
  display: inline-flex; align-items: center; gap: 5px;
  max-width: 45%; overflow: hidden;
  color: #775c59; font: 16px var(--play);
  white-space: nowrap; text-overflow: ellipsis;
}
.piece-legend img { width: 29px; height: 36px; object-fit: contain; flex: none; }
.saved-rooms { margin-top: 18px; text-align: center; }
.saved-rooms h2 { margin: 0 0 6px; font: 28px var(--play); }
.saved-room-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.saved-room-list .ticket { max-width: 100%; overflow-wrap: anywhere; }
.save-panel { background: linear-gradient(145deg, #fffaf0, #fce7ee); text-align: center; }
.save-panel h2 { margin: 0 0 9px; font: 26px var(--play); }
.save-panel p { margin: 6px auto 12px; max-width: 360px; line-height: 1.6; }
.save-panel .save-status { margin-bottom: 13px; color: #98777f; font-size: 12px; }
.save-panel .ticket { max-width: 100%; }
.save-panel .subtle { font-size: 11px; }
.ongoing-panel { background: linear-gradient(145deg, #fffaf3, #eaf5f1); }
.ongoing-panel h2 { margin: 0 0 8px; font: 27px var(--play); }
.ongoing-card { padding: 13px; margin-top: 12px; border: 2px dashed #d8b5a8; border-radius: 15px; background: #fffdf8; }
.ongoing-card strong { color: #875b68; font: 20px var(--play); }
.ongoing-card p { margin: 8px 0; line-height: 1.6; }
.ongoing-card small { color: #967b7b; }
.ongoing-card .row { margin-top: 13px; }
.mobile-action-bar, .mobile-lobby-bar { display: none; }
.first-turn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: fit-content; max-width: 100%; margin: 0 auto 11px; padding: 6px 14px;
  border: 2px solid #d9a9a9; border-radius: 999px;
  background: #fff8dc; box-shadow: 2px 3px 0 #e7c9bd;
  color: #825e68; font-size: 12px;
}
.first-turn strong { color: #a75070; font: 18px var(--play); }
.board-prize {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 10px;
  margin: 0 auto 15px; max-width: 630px;
  border: 2px dashed #d6a4b0; border-radius: 16px;
  background: #fff1ed; padding: 9px 13px;
  font-size: 13px;
}
.board-prize span { color: #9d6d7c; font-family: var(--play); }
.board-prize strong { color: #704c53; font-size: 14px; }
.board-panel .board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(5, minmax(0, 1fr));
  gap: 7px;
  width: 100%; max-width: 630px;
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 5px;
  border: 2px dashed #c49f98;
  border-radius: 20px;
  background: radial-gradient(circle at center, #fff6e2 0 19%, transparent 55%), #fffcf5;
}
.board .square {
  z-index: 1;
  min-width: 0;
  min-height: 0;
  padding: 8px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.board .square h3 {
  margin: 18px 0 2px;
  font-size: clamp(14px, 1.8vw, 20px);
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.board .square h3 span { display: inline; }
.board .square p { display: none; }
.board .square-number { font-size: 11px; }
.board .square-deco { top: 7px; right: 8px; font-size: 17px; }
.board .pawns { flex-wrap: wrap; min-height: 14px; }
.board .pawn {
  display: inline-block; max-width: 100%; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
  font-size: 10px; padding: 1px 4px;
}
.board .special-square { cursor: default; }
.board .special-square:hover { transform: none; box-shadow: 0 4px 0 #dfc9bf; }
.board .start-square { background: linear-gradient(145deg, #def4ee, #c9e8db); border-color: #89aa96; }
.board .finish-square { background: linear-gradient(145deg, #fff2b9, #ffd7e2); border-color: #c58593; }
.board .special-square h3 { font-size: 21px; }
.board .special-square .square-number { color: #a66a7b; font-size: 10px; }
.board .square.occupied h3 { opacity: .26; }
.pawn-layer { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.board-piece {
  position: absolute;
  display: block;
  width: 42px; height: 54px;
  object-fit: contain;
  filter: drop-shadow(1px 3px 2px rgba(78,52,51,.25));
  will-change: transform;
}
.board-doodle {
  display: grid; place-items: center;
  pointer-events: none;
  opacity: .95;
  min-width: 0; min-height: 0;
}
.board-doodle img { width: 100%; max-width: 105px; max-height: 105px; object-fit: contain; }
.bunny-doodle { grid-column: 4; grid-row: 3; transform: rotate(7deg); }
.sheep-doodle { grid-column: 2; grid-row: 4; transform: rotate(-8deg); }
.winner-panel { text-align: center; background: linear-gradient(140deg,#fff9ed,#fce4ec); }
.winner-sticker { width: 180px; height: 120px; object-fit: contain; }
.winner-panel h2 { font: 32px var(--play); margin: 5px 0 12px; }
.winner-panel p { line-height: 1.7; }
.winner-panel strong { color: #b56578; }
.task-outcomes { justify-content: center; flex-wrap: wrap; }
.task-outcomes .ticket { flex: 1; min-width: 135px; }
.task-detail .later-button { margin-top: 13px; }
.task-detail .detail-bunny { width: 190px; height: 130px; object-fit: contain; }
.modal-backdrop .modal { max-height: 90vh; overflow: auto; }
.task-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.task-fields .field { min-width: 0; }
.task-fields select { width: 100%; min-height: 46px; padding: 10px 30px 10px 10px; border: 2px solid #be9b92; border-radius: 13px; background: #fffdf6; color: #5e4945; font: inherit; }
.task-fields select:focus-visible { outline: 3px solid #c8839b; outline-offset: 2px; }
.task-fields select:disabled { color: #9a8c89; background: #f3ebe5; }
@media (max-width: 360px) { .task-fields { grid-template-columns: minmax(0, 1fr); gap: 0; } }
@media (max-width: 700px) {
  body.has-mobile-action .shell { padding-bottom: 118px; }
  .mobile-action-bar, .mobile-lobby-bar {
    position: fixed; inset: auto 0 0; z-index: 4;
    display: flex; align-items: center; justify-content: space-between; gap: 9px;
    min-height: 70px; padding: 9px 15px calc(9px + env(safe-area-inset-bottom));
    border-top: 2px solid #d2a2a8;
    background: linear-gradient(110deg, #fff9ee, #fce8ee);
    box-shadow: 0 -6px 22px rgba(104,67,77,.13);
  }
  .mobile-action-bar span, .mobile-lobby-bar span { color: #795963; font: 16px var(--play); line-height: 1.15; }
  .mobile-action-bar strong { color: #9d6275; font-size: 13px; text-align: right; }
  .mobile-action-bar .ticket, .mobile-lobby-bar .ticket { flex: none; min-height: 44px; padding: 7px 12px; white-space: nowrap; font-size: 13px; }
  .mobile-action-bar:has(.mobile-action-buttons) { flex-direction: column; align-items: stretch; gap: 6px; }
  .mobile-action-buttons { display: flex; gap: 6px; }
  .mobile-action-buttons .ticket { flex: 1; min-width: 0; padding: 7px 5px; font-size: 12px; }
}
.drawn-result {
  text-align: center;
  border-color: #c18e9a;
  background: linear-gradient(145deg, #fffaf0, #fce8ed);
}
.drawn-result .result-sticker { width: 150px; height: 120px; object-fit: contain; }
.drawn-result h2 { margin: 4px 0 12px; font: 30px var(--play); }
.drawn-result p { line-height: 1.75; margin-bottom: 22px; }
@media (max-width: 850px) {
  .hero-art .art-card.two img { width: 90px; height: 90px; }
  .title-stickers { width: 170px; min-width: 170px; }
  .title-stickers img { width: 105px; height: 105px; }
  .title-stickers .title-duo { width: 170px; height: 130px; }
  .game-title-sticker { width: 100px; }
  .hero-board-sticker { width: min(100%, 300px); }
}
@media (max-width: 580px) {
  .hero h1 { font-size: clamp(27px, 8vw, 34px); line-height: 1.23; }
  .lobby-grid { grid-template-columns: minmax(0, 1fr); }
  .lobby-grid > .panel { min-width: 0; }
  .map-filters { max-width: 100%; }
  .card-list { grid-template-columns: minmax(0, 1fr); }
  .lobby-title {
    display: block;
    min-height: 0;
    margin: 14px 0 18px;
    padding: 15px 15px 72px;
  }
  .lobby-title h1 { font-size: clamp(28px, 7.6vw, 35px); line-height: 1.32; }
  .lobby-title h1 span { display: block; }
  .lobby-title p { max-width: 100%; }
  .title-stickers {
    position: absolute;
    right: 9px;
    bottom: -12px;
    width: 120px;
    min-width: 120px;
    height: 88px;
    margin: 0;
  }
  .title-stickers img { width: 78px; height: 78px; }
  .title-stickers .title-duo { width: 120px; height: 95px; top: -10px; }
  .title-stickers span { right: 8px; bottom: 0; font-size: 9px; }
  .hero-art .art-card.two img { width: 78px; height: 74px; }
  .hero-board-sticker { width: 240px; height: 165px; }
  .game-title { margin: 15px 2px 17px; }
  .game-title > div { padding-right: 72px; }
  .game-title h1 { padding-right: 0; font-size: clamp(25px, 7.5vw, 31px); white-space: nowrap; }
  .game-title p { font-size: 12px; line-height: 1.45; }
  .game-title-sticker { position: absolute; display: block; right: 0; top: 18px; width: 68px; height: 63px; margin: 0; }
  .game-title .ticket { margin-left: 0; }
  .lobby-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .lobby-actions .ticket { width: 100%; white-space: nowrap; }
  .library-heading { display: grid; grid-template-columns: minmax(0, 1fr) 120px; align-items: start; gap: 8px; }
  .library-heading > div { min-width: 0; }
  .library-heading .subtle { overflow-wrap: anywhere; line-height: 1.45; }
  .library-heading .ticket.small { width: 120px; min-width: 120px; padding-inline: 22px; justify-self: end; text-align: center; white-space: nowrap; }
  .card-summary-title strong { font-size: 18px; }
  .board-panel .board { gap: 4px; padding: 4px; border-radius: 15px; }
  .board .square { padding: 5px 4px 3px; min-height: 0; border-radius: 10px; border-width: 1.5px; }
  .board .square-number { font-size: 8px; line-height: 1; }
  .board .square-deco { top: 3px; right: 4px; font-size: 11px; }
  .board .square h3 { display: block; flex: 0 0 auto; font-size: clamp(11px, 3.2vw, 14px); margin: 3px 0 0; line-height: 1.1; overflow-wrap: normal; -webkit-line-clamp: unset; }
  .board .square h3 span { display: block; white-space: nowrap; }
  .board .special-square h3 { font-size: 15px; }
  .board .special-square .square-number { font-size: 7px; }
  .board .pawn { font-size: 7px; line-height: 1; padding: 1px 2px; }
  .board .pawns { gap: 1px; padding-top: 2px; }
  .board-piece { width: 32px; height: 42px; }
  .piece-legend span { font-size: 14px; }
  .piece-legend img { width: 24px; height: 31px; }
  .board-doodle img { max-height: 65px; }
  .board-caption { align-items: center; }
  .board-caption span:last-child { text-align: right; }
  .board-prize { font-size: 12px; }
}
@media (max-width: 580px) {
  .ticket.small, .tab, .text-button { min-height: 44px; }
  .ticket.small::before, .ticket.small::after,
  .mobile-action-bar .ticket::before, .mobile-action-bar .ticket::after,
  .mobile-lobby-bar .ticket::before, .mobile-lobby-bar .ticket::after,
  .modal-actions .ticket::before, .modal-actions .ticket::after,
  .game-side .row .ticket::before, .game-side .row .ticket::after,
  .text-button::before { display: none; }
  .mobile-action-bar .ticket, .mobile-lobby-bar .ticket { text-align: center; }
  .game-side .row .ticket { min-width: 0; min-height: 44px; padding: 8px 10px; white-space: nowrap; }
}
.hero h1 {
  font-family: var(--play);
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.32;
  color: #754f58;
  text-shadow: 2px 2px 0 #fffaf1, 4px 4px 0 #efd2d5;
}
.hero h1 span:last-child { color: #a76579; }
@media (max-width: 580px) {
  .hero h1 { font-size: clamp(23px, 6.5vw, 34px); line-height: 1.38; }
}
