/* ==========================================================================
   works.css — ส่วนโหวตผลงาน (vote.html) และหน้ารวมผลงาน/ประกาศผล (gallery.html)
   ใช้ตัวแปรสีชุดเดียวกับ style.css — ไฟล์นี้ต้องโหลดต่อจาก style.css เสมอ
   ========================================================================== */

/* กริดผลงานกว้างกว่าฟอร์ม เลยขยาย container เฉพาะสองหน้านี้ */
.container--wide { max-width: 1180px; }

/* ล็อกไม่ให้พื้นหลังเลื่อนตอนเปิดป๊อปอัพ */
body.is-locked { overflow: hidden; }

/* ==========================================================================
   กล่องข้อความบอกสถานะ (ต่อยอดจาก .notice ใน style.css)
   ========================================================================== */

.notice--info {
  color: var(--c-blue-dark);
  background: var(--c-blue-pale);
  border: 1.5px solid var(--c-blue-light);
}

.notice--info .notice__icon { background: var(--c-blue); }

/* ==========================================================================
   แถบบอกเกม / RO ID ที่เลือกไว้
   ========================================================================== */

.votebar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  margin-bottom: 16px;
  padding: 14px 20px;
  background: var(--c-paper);
  border: 1.5px solid var(--c-paper-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.votebar__item { display: flex; flex-direction: column; line-height: 1.4; }

.votebar__key {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--c-text-faint);
  text-transform: uppercase;
}

.votebar__val {
  font-size: 15px;
  color: var(--c-heading);
  text-shadow: var(--sh-text-em);
  word-break: break-all;
}

.votebar .btn { margin-left: auto; }

/* ==========================================================================
   แท็บประเภทผลงาน
   ========================================================================== */

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.tabs__btn {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 18px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  color: var(--c-text-muted);
  background: var(--c-paper);
  border: 2px solid var(--c-paper-deep);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease,
              background .18s ease, box-shadow .18s ease;
}

.tabs__btn:hover {
  transform: translateY(-2px);
  border-color: var(--c-gold-light);
  box-shadow: var(--shadow-sm);
}

.tabs__btn:focus-visible {
  outline: 3px solid var(--c-blue-light);
  outline-offset: 2px;
}

.tabs__btn.is-active {
  color: #fff;
  background: linear-gradient(160deg, var(--c-blue) 0%, var(--c-blue-dark) 100%);
  border-color: var(--c-blue-dark);
  box-shadow: var(--shadow-blue);
}

.tabs__name { text-shadow: var(--sh-text-em); }
.tabs__btn.is-active .tabs__name { text-shadow: var(--sh-text-light); }

.tabs__state {
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--c-text-faint);
}

.tabs__btn.is-active .tabs__state { color: var(--c-blue-pale); }

.tabs__state.is-picked { color: var(--c-gold-dark); }
.tabs__state.is-done { color: var(--c-mint); }
.tabs__btn.is-active .tabs__state.is-picked,
.tabs__btn.is-active .tabs__state.is-done { color: var(--c-gold-light); }

.tabs__hint {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--c-text-muted);
  text-shadow: var(--sh-text-em);
}

.works-loading {
  padding: 40px 0;
  font-size: 14px;
  text-align: center;
  color: var(--c-text-muted);
}

/* ==========================================================================
   กริดการ์ดผลงาน
   ========================================================================== */

.works {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.work {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--c-paper);
  border: 2px solid var(--c-paper-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.work:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.work.is-picked {
  border-color: var(--c-gold);
  box-shadow: var(--shadow-gold);
}

.work.is-voted { border-color: var(--c-mint); }

/* ---- ภาพ ---- */

.work__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--c-paper-alt);
}

.work__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.work:hover .work__img { transform: scale(1.05); }

/* ปุ่มแว่นขยาย */
.work__zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--c-blue-dark);
  background: rgba(255, 255, 255, .92);
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.work__zoom:hover {
  transform: scale(1.12);
  color: #fff;
  background: var(--c-blue);
}

.work__zoom:focus-visible {
  outline: 3px solid var(--c-blue-light);
  outline-offset: 2px;
}

/* ป้ายอันดับ (หน้าประกาศผล) */
.work__rank {
  position: absolute;
  top: 10px;
  left: 10px;
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 9px;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--c-blue-deep);
  background: linear-gradient(160deg, var(--c-gold-light) 0%, var(--c-gold) 100%);
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: var(--shadow-gold);
}

.work__rank.is-top {
  color: #fff;
  background: linear-gradient(160deg, #ffb64d 0%, #e0761a 100%);
}

/* ป้าย "ผลงานที่คุณโหวต" */
.work__flag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--c-mint);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

/* ---- เนื้อการ์ด ---- */

.work__body { flex: 1; padding: 12px 14px 10px; }

.work__cat {
  margin: 0 0 2px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--c-text-faint);
  text-transform: uppercase;
}

/* ชื่อผลงาน — บรรทัดเด่นของการ์ด ยาวเกิน 2 บรรทัดให้ตัด ... */
.work__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin: 0 0 3px;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.35;
  color: var(--c-heading);
  text-shadow: var(--sh-text-em);
  word-break: break-word;
}

.work__pen {
  margin: 0;
  font-size: 12.5px;
  color: var(--c-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- ปุ่มโหวต ---- */

.work__pick {
  padding: 11px 14px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--c-blue-dark);
  background: var(--c-blue-pale);
  border: 0;
  border-top: 2px solid var(--c-paper-deep);
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}

.work__pick:hover { color: #fff; background: var(--c-blue); }

.work__pick:focus-visible {
  outline: 3px solid var(--c-blue-light);
  outline-offset: -3px;
}

.work.is-picked .work__pick {
  color: var(--c-blue-deep);
  background: linear-gradient(160deg, var(--c-gold-light) 0%, var(--c-gold) 100%);
  border-top-color: var(--c-gold);
}

/* ==========================================================================
   แถบสรุปการเลือก (ลอยติดล่างจอ)
   ========================================================================== */

.votedock {
  position: sticky;
  bottom: 0;
  z-index: 40;
  margin: 0 -20px;
  padding: 12px 20px 16px;
  background: linear-gradient(to top, var(--c-paper-alt) 62%, rgba(247, 236, 214, 0));
}

.votedock__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding: 14px 20px;
  background: linear-gradient(160deg, var(--c-blue) 0%, var(--c-blue-dark) 100%);
  border: 2px solid var(--c-blue-deep);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.votedock__picks {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 8px 26px;
  min-width: 0;
}

.votedock__pick { display: flex; flex-direction: column; line-height: 1.4; }

.votedock__key {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--c-blue-pale);
}

.votedock__val {
  font-size: 15px;
  color: rgba(255, 255, 255, .62);
  text-shadow: var(--sh-text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.votedock__val.is-set { color: var(--c-gold-light); }

/* บอกว่าทำไมปุ่มยืนยันยังกดไม่ได้ */
.votedock__hint {
  margin: 8px 0 0;
  padding: 0 4px;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  color: var(--c-blue-dark);
  text-shadow: var(--sh-text-em);
}

/* ==========================================================================
   รายการที่โหวตไป (ในป๊อปอัพยืนยัน และหน้าโหวตสำเร็จ)
   ========================================================================== */

.confirm-picks { margin-bottom: 18px; text-align: left; }

.confirm-pick {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  margin-bottom: 8px;
  background: var(--c-paper-alt);
  border-radius: var(--radius-sm);
}

.confirm-pick__key { font-size: 13px; color: var(--c-text-muted); }

.confirm-pick__val {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--c-heading);
  text-align: right;
  word-break: break-word;
}

.votedone { margin: 0 auto 24px; max-width: 460px; }

.votedone__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  margin-bottom: 10px;
  text-align: left;
  background: var(--c-paper-alt);
  border-radius: var(--radius);
}

.votedone__key {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--c-text-muted);
}

.votedone__thumb {
  width: 54px;
  height: 42px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
}

.votedone__val {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--c-heading);
  word-break: break-word;
}

.votedone__val.is-empty { color: var(--c-text-faint); font-style: italic; }

/* ==========================================================================
   บล็อกผู้ชนะ (หน้าประกาศผล)
   ========================================================================== */

.wsec { margin-bottom: 40px; }

.wsec__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  font-size: 22px;
  color: var(--c-heading);
  text-shadow: var(--sh-text);
}

.wsec__crown { display: block; width: 26px; flex: 0 0 auto; }
.wsec__crown img { width: 100%; }

.wsec__sub {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-gold-dark);
  text-shadow: var(--sh-text-em);
}

.wsec__split {
  height: 0;
  margin: 4px 0 40px;
  border: 0;
  border-top: 2px dashed var(--c-paper-deep);
}

.wsec__more {
  margin: 30px 0 14px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--c-text-muted);
  text-shadow: var(--sh-text-em);
}

/* ==========================================================================
   หัวข้อใหญ่หน้าประกาศผู้ชนะ (winners.html)
   ========================================================================== */

.announce {
  position: relative;
  overflow: hidden;
  margin-bottom: clamp(34px, 6vw, 64px);
  padding: clamp(26px, 5vw, 52px) clamp(18px, 4vw, 44px) clamp(24px, 4vw, 42px);
  text-align: center;
  background:
    radial-gradient(130% 150% at 50% 0%, rgba(255, 255, 255, .32) 0%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(165deg, var(--c-blue-light) 0%, var(--c-blue) 40%, var(--c-blue-dark) 100%);
  border: 4px solid var(--c-gold-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ดาวประกายในแบนเนอร์ (สร้างด้วย JS) */
.announce__stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.announce__logo {
  position: relative;
  width: min(48vw, 300px);
  margin: 0 auto clamp(12px, 2vw, 22px);
  filter: drop-shadow(0 10px 22px rgba(12, 43, 87, .5));
}

.announce__title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.4vw, 26px);
  margin: 0 0 clamp(8px, 1.4vw, 14px);
  font-size: clamp(26px, 5.6vw, 58px);
  line-height: 1.2;
}

.announce__title-text {
  color: var(--c-gold-light);
  text-shadow:
    0 3px 0 var(--c-blue-deep),
    0 8px 22px rgba(12, 43, 87, .62);
}

.announce__deco { display: block; width: clamp(24px, 4.4vw, 54px); flex: 0 0 auto; }
.announce__deco img { width: 100%; }
.announce__deco:first-child img { animation: gem-spin 6s linear infinite; }
.announce__deco:last-child img { animation: gem-spin 6s linear infinite reverse; }

.announce__sub {
  position: relative;
  max-width: 620px;
  margin: 0 auto clamp(16px, 2.6vw, 26px);
  font-size: clamp(13.5px, 1.8vw, 16px);
  color: #fff;
  text-shadow: var(--sh-text-light);
}

.announce__link {
  position: relative;
  display: inline-block;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-blue-deep);
  text-decoration: none;
  background: var(--c-gold-light);
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, background .18s ease;
}

.announce__link:hover { transform: translateY(-2px); background: #fff; }

.announce__link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* ท้ายหน้าประกาศผล — ชวนไปดูผลงานทั้งหมด */
.announce__foot {
  margin: clamp(20px, 4vw, 44px) 0 10px;
  padding: clamp(22px, 4vw, 38px) 20px;
  text-align: center;
  background: var(--c-paper);
  border: 2px dashed var(--c-paper-deep);
  border-radius: var(--radius-lg);
}

.announce__foot p {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(15px, 2vw, 19px);
  color: var(--c-heading);
  text-shadow: var(--sh-text-em);
}

/* ---- แถบชวนไปหน้าประกาศผู้ชนะ (อยู่บนหน้ารวมผลงาน) ---- */

.winlink {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
  padding: 16px 22px;
  text-decoration: none;
  background:
    radial-gradient(120% 150% at 50% 0%, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(160deg, var(--c-blue) 0%, var(--c-blue-dark) 100%);
  border: 3px solid var(--c-gold-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-blue);
  transition: transform .18s ease, box-shadow .18s ease;
}

.winlink:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.winlink:focus-visible { outline: 3px solid var(--c-gold); outline-offset: 3px; }

.winlink__star { display: block; width: 40px; flex: 0 0 auto; }
.winlink__star img { width: 100%; animation: gem-spin 6s linear infinite; }

.winlink__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.winlink__text b {
  font-family: var(--font-display);
  font-size: clamp(16px, 2.2vw, 21px);
  color: var(--c-gold-light);
  text-shadow: 0 2px 0 var(--c-blue-deep);
}

.winlink__text small {
  font-size: 13px;
  color: #fff;
  text-shadow: var(--sh-text-light);
}

.winlink__go {
  font-size: 26px;
  color: var(--c-gold-light);
  transition: transform .18s ease;
}

.winlink:hover .winlink__go { transform: translateX(5px); }

/* ชื่อซ้ำกับใน landing.css โดยตั้งใจ — สองไฟล์นี้ไม่เคยโหลดพร้อมกัน
   (landing.css ใช้แค่ index.html, works.css ใช้แค่ vote/gallery/winners)
   อย่าลบอันใดอันหนึ่งทิ้งเพราะคิดว่าซ้ำ */
@keyframes gem-spin {
  from { transform: rotate(0deg) scale(.9); }
  50%  { transform: rotate(180deg) scale(1.15); }
  to   { transform: rotate(360deg) scale(.9); }
}

/* ==========================================================================
   แท่นผู้ชนะ 3 อันดับแรก
   DOM เรียง 1-2-3 ตามลำดับที่ควรอ่าน แล้วใช้ order ย้ายอันดับ 1 ไปกลางจอ
   ========================================================================== */

/* สัดส่วนตามที่สเก็ตช์มา: อันดับ 1 ใหญ่สุดอยู่กลาง, 3 รองลงมา, 2 เล็กสุด
   ทุกใบชิดล่าง (align-items: end) ใบกลางที่กว้างกว่าจึงสูงโด่งขึ้นมาเองเป็นแท่น */
.podium {
  display: grid;
  grid-template-columns: 1fr 1.52fr 1.18fr;
  align-items: end;
  gap: clamp(12px, 2.2vw, 26px);
  margin-bottom: 8px;
}

.podium__item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--c-paper);
  border: 3px solid var(--c-paper-deep);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.podium__item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.podium__item--1 {
  order: 2;
  border-width: 4px;
  border-color: var(--c-gold);
  box-shadow: var(--shadow-gold), var(--shadow);
}

.podium__item--2 { order: 1; border-color: #bcc6d2; }
.podium__item--3 { order: 3; border-color: #d8a679; }

.podium__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--c-paper-alt);
}

.podium__img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.podium__item:hover .podium__img { transform: scale(1.05); }

.podium__medal {
  position: absolute;
  top: 10px;
  left: 10px;
  display: grid;
  place-items: center;
  width: clamp(38px, 4.4vw, 52px);
  height: clamp(38px, 4.4vw, 52px);
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 24px);
  color: #fff;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.podium__item--1 .podium__medal { background: linear-gradient(160deg, #ffd977 0%, #d99a1c 100%); color: var(--c-blue-deep); }
.podium__item--2 .podium__medal { background: linear-gradient(160deg, #eef2f7 0%, #9fadbd 100%); color: #3d4a5a; }
.podium__item--3 .podium__medal { background: linear-gradient(160deg, #f4c79c 0%, #bd7636 100%); }

.podium__body { padding: 14px 16px 16px; text-align: center; }

.podium__title {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--c-gold-dark);
  text-transform: uppercase;
}

.podium__item--2 .podium__title { color: #6d7b8b; }
.podium__item--3 .podium__title { color: #a8703c; }

/* ชื่อผลงาน — บรรทัดเด่นบนแท่น ใหญ่ตามอันดับ */
.podium__work {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.9vw, 21px);
  line-height: 1.35;
  color: var(--c-heading);
  text-shadow: var(--sh-text-em);
  word-break: break-word;
}

.podium__item--1 .podium__work { font-size: clamp(17px, 2.3vw, 26px); }

.podium__pen {
  margin: 0 0 3px;
  font-size: 13px;
  color: var(--c-text-muted);
  word-break: break-word;
}

.podium__cat {
  margin: 0;
  font-size: 12px;
  color: var(--c-text-faint);
}

/* ==========================================================================
   ป๊อปอัพดูผลงานขนาดใหญ่
   ========================================================================== */

.lb {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(12, 43, 87, .72);
  backdrop-filter: blur(3px);
  animation: fade-in .2s ease;
}

.lb__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 880px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--c-paper);
  border: 2px solid var(--c-gold-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: pop-in .26s cubic-bezier(.22, 1, .36, 1);
}

.lb__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 26px;
  line-height: 1;
  color: var(--c-blue-dark);
  background: rgba(255, 255, 255, .92);
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.lb__close:hover { transform: scale(1.1); color: #fff; background: var(--c-error); }

.lb__close:focus-visible {
  outline: 3px solid var(--c-blue-light);
  outline-offset: 2px;
}

.lb__media {
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--c-blue-deep);
}

.lb__img {
  width: auto;
  max-width: 100%;
  max-height: 62vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lb__info { padding: 20px 24px 26px; }

.lb__cat {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--c-gold-dark);
  text-transform: uppercase;
}

.lb__key {
  margin: 0 0 3px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--c-text-faint);
  text-transform: uppercase;
}

.lb__title {
  margin: 0 0 18px;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.35;
  color: var(--c-heading);
  text-shadow: var(--sh-text);
  word-break: break-word;
}

.lb__pen {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--c-text);
  text-shadow: var(--sh-text-em);
  word-break: break-word;
}

.lb__desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--c-text);
  white-space: pre-wrap;
  word-break: break-word;
}

.lb__desc.is-empty { color: var(--c-text-faint); font-style: italic; }

/* ==========================================================================
   ไอคอนผลลัพธ์แบบผิดพลาด (ต่อยอดจาก .result__icon ใน style.css)
   ========================================================================== */

.result__icon--bad {
  color: #fff;
  background: linear-gradient(160deg, #ef6b66 0%, var(--c-error) 100%);
  box-shadow: 0 8px 22px rgba(210, 69, 63, .34);
}

/* ==========================================================================
   จอเล็ก
   ========================================================================== */

@media (max-width: 720px) {
  .works { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .work__body { padding: 10px 11px 8px; }
  .work__pen { font-size: 13.5px; }
  .work__zoom { width: 34px; height: 34px; }

  .tabs { grid-template-columns: 1fr; gap: 8px; }
  .tabs__btn { padding: 11px 15px; font-size: 15px; }

  .votebar { gap: 8px 18px; padding: 12px 15px; }
  .votebar .btn { margin-left: 0; }

  .votedock__inner { padding: 12px 15px; border-radius: var(--radius); }
  .votedock__inner .btn { width: 100%; }

  .wsec__title { font-size: 18px; }
  .lb__info { padding: 16px 18px 22px; }
  .lb__pen { font-size: 17px; }

  /* แท่นผู้ชนะ 3 ช่องแคบเกินบนมือถือ — เรียงลงมาเป็น 1-2-3 ตาม DOM */
  .podium { grid-template-columns: 1fr; gap: 14px; }
  .podium__item--1,
  .podium__item--2,
  .podium__item--3 { order: 0; }
  .podium__body { padding: 12px 14px 14px; }

  .announce { padding: 22px 14px 20px; }
  .announce__title { gap: 8px; }
  .winlink { gap: 12px; padding: 14px 15px; }
  .winlink__star { width: 30px; }
  .winlink__go { font-size: 21px; }
}

/* ==========================================================================
   ผู้ใช้ที่ขอลดการเคลื่อนไหว — ตัดทุกอย่างที่ขยับ
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .lb, .lb__panel { animation: none; }
  .announce__deco img, .winlink__star img { animation: none; }
  .work, .work__img, .work__zoom, .lb__close, .tabs__btn,
  .podium__item, .podium__img, .winlink, .winlink__go,
  .announce__link { transition: none; }
  .winlink:hover { transform: none; }
  .winlink:hover .winlink__go { transform: none; }
  .announce__link:hover { transform: none; }
  .work:hover { transform: none; }
  .work:hover .work__img { transform: none; }
  .work__zoom:hover, .lb__close:hover { transform: none; }
  .tabs__btn:hover { transform: none; }
  .podium__item:hover { transform: none; }
  .podium__item:hover .podium__img { transform: none; }
}
