/* =========================================================
   WRITING TASK 1.1 – Premium UI
   ========================================================= */
.page-head h1{
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.5px;
}
.page-sub{
  margin-top: 6px;
  opacity: 0.9;
}


.w11-view{ display:none; }
.w11-view.w11-active{ display:block; animation: fade 0.25s ease; }

.w11-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap:18px;
  max-width: 1100px;
  margin: 18px auto 0;
}
.w11-card{
  border:0;
  cursor:pointer;
  text-align:left;
  background:#fff;
  padding:22px;
  border-radius:18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
  transition: transform .25s ease, box-shadow .25s ease;
}
.w11-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.14);
}
.w11-emoji{
  font-size: 34px;
  line-height: 1;
  margin-bottom: 10px;
}
.w11-card h3{ margin: 6px 0 6px; font-size: 18px; color:#111; }
.w11-card p{ margin: 0; color:#666; }

.w11-topbar{
  display:flex;
  gap:14px;
  align-items:flex-start;
  justify-content:flex-start;
  margin: 10px 0 18px;
}
.w11-title h2{ margin: 0; }
.w11-title p{ margin: 6px 0 0; opacity: 0.9; }

.w11-list{
  max-width: 1100px;
  margin: 0 auto;
  display:grid;
  gap: 12px;
}
.w11-item{
  background:#fff;
  border-radius:16px;
  padding: 16px 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}
.w11-item-left{ min-width: 0; }
.w11-item-title{
  color:#111;
  font-weight: 600;
  margin-top: 6px;
  line-height: 1.35;
  max-width: 720px;
}
.w11-badge{
  display:inline-block;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background:#f3f4f6;
  color:#111;
  font-weight: 700;
}

.w11-detail{
  max-width: 1100px;
  margin: 0 auto;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.w11-detail-box{
  background:#fff;
  border-radius:18px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
}
.w11-detail-box h3{
  margin: 0 0 10px;
  color:#111;
}
.w11-detail-text{
  line-height: 1.75;
  color:#222;
}
.w11-textarea{
  width: 100%;
  min-height: 210px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #ddd;
  font-size: 15px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
}
.w11-textarea:focus{
  border-color: #e53935;
  box-shadow: 0 0 0 4px rgba(229,57,53,0.12);
}

.w11-actions{
  display:flex;
  gap: 10px;
  align-items:center;
  margin-top: 12px;
  flex-wrap: wrap;
}
.w11-hint{ opacity: .9; font-weight: 700; }

.w11-note{
  margin-top: 10px;
  opacity: 0.9;
}

.primary-btn, .ghost-btn{
  border:0;
  cursor:pointer;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
}
.primary-btn{
  background:#e53935;
  color:#fff;
}
.primary-btn:hover{ filter: brightness(0.95); }
.ghost-btn{
  background:#f3f4f6;
  color:#111;
}
.ghost-btn:hover{ filter: brightness(0.98); }

.video-card{
  background:#fff;
  border-radius:18px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
}
.video-card h4{ margin: 10px 0 6px; color:#111; }
.video-card p{ margin: 0; color:#666; }

@media (max-width: 900px){
  .w11-grid{ grid-template-columns: 1fr; }
  .w11-detail{ grid-template-columns: 1fr; }
  .w11-item{ flex-direction: column; align-items: flex-start; }
  .w11-item-title{ max-width: 100%; }
}
/* =========================================================
   WRITING TASK 1.1 / 1.2 — PREMIUM UI (w11 / w12)
   Paste this at the VERY END of style.css
========================================================= */

/* page head */
.page-head{
  margin: 10px 0 18px;
}
.page-head h1{
  font-size: 34px;
  line-height: 1.15;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}
.page-sub{
  color: #6b7280;
  font-size: 15px;
}

/* shared “view” system */
.w11-view{ display:none; }
.w11-view.w11-active{ display:block; }

/* 3 premium boxes */
.w11-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 14px;
}
.w11-card{
  width:100%;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);
  border-radius: 18px;
  padding: 18px 18px;
  text-align:left;
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
}
.w11-card:hover{
  transform: translateY(-2px);
  border-color: rgba(0,0,0,0.12);
  box-shadow: 0 16px 34px rgba(0,0,0,0.10);
}
.w11-emoji{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius: 14px;
  background: rgba(229,57,53,0.10);
  font-size: 22px;
  margin-bottom: 10px;
}
.w11-card h3{
  font-size: 18px;
  margin: 2px 0 6px;
}
.w11-card p{
  color:#6b7280;
  font-size: 14px;
  line-height: 1.45;
}

/* topbar */
.w11-topbar{
  display:flex;
  align-items:center;
  gap: 14px;
  margin: 12px 0 16px;
}
.w11-title h2{
  margin:0;
  font-size: 22px;
}
.w11-title p{
  margin: 4px 0 0;
  color:#6b7280;
  font-size: 14px;
}

/* back button (premium) */
.back-btn{
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  cursor:pointer;
  transition: .18s ease;
}
.back-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}

/* video list */
.video-list{
  display:grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 16px;
}
.video-card{
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.85);
  border-radius: 18px;
  overflow:hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
}
.video-wrapper{
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #0b0f19;
}
.video-wrapper iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}
.video-card h4{
  margin: 12px 14px 4px;
  font-size: 16px;
}
.video-card p{
  margin: 0 14px 14px;
  color:#6b7280;
  font-size: 13.5px;
}

/* list (samples/practice) */
.w11-list{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.w11-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.85);
  box-shadow: 0 10px 24px rgba(0,0,0,0.05);
}
.w11-row-left h4{
  margin:0;
  font-size: 16px;
}
.muted{
  margin: 4px 0 0;
  color:#6b7280;
  font-size: 13.5px;
}

/* pill buttons */
.pill-btn{
  border: none;
  padding: 10px 14px;
  border-radius: 999px;
  cursor:pointer;
  font-weight: 700;
  background: #e53935;
  color:#fff;
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
  box-shadow: 0 10px 20px rgba(229,57,53,0.25);
  white-space: nowrap;
}
.pill-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(229,57,53,0.32);
}
.pill-btn:active{ transform: translateY(0px) scale(0.99); }

/* detail pages */
.w11-detail{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.w11-detail-box{
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.85);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.05);
}
.w11-detail-box h3{
  margin: 0 0 10px;
  font-size: 16px;
}
.w11-detail-text{
  white-space: pre-wrap;
  line-height: 1.65;
  color:#111827;
  font-size: 14.5px;
}

/* textarea + actions */
.w11-textarea{
  width:100%;
  min-height: 220px;
  resize: vertical;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.10);
  outline: none;
  font-size: 14.5px;
  line-height: 1.65;
  background: rgba(255,255,255,0.95);
}
.w11-textarea:focus{
  border-color: rgba(229,57,53,0.55);
  box-shadow: 0 0 0 4px rgba(229,57,53,0.12);
}

.w11-actions{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.w11-nav-group{
  margin-left: auto;
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
}

.w11-next-btn,
.w11-prev-btn{
  white-space: nowrap;
}

.submit-btn{
  border: none;
  padding: 11px 16px;
  border-radius: 12px;
  cursor:pointer;
  font-weight: 800;
  background: #e53935;
  color:#fff;
  box-shadow: 0 12px 24px rgba(229,57,53,0.25);
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}
.submit-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(229,57,53,0.30);
}
.submit-btn:disabled{
  opacity: .6;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}

.ghost-btn{
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  cursor:pointer;
  font-weight: 700;
}
.ghost-btn:hover{
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.w11-hint{
  color:#10b981;
  font-weight: 700;
  font-size: 13.5px;
}
.w11-note{
  margin-top: 10px;
  color:#6b7280;
  font-size: 13.5px;
  line-height: 1.6;
}

/* Writing task 1.1 typography +2 size */
.w11-page .page-head h1{ font-size: 36px; }
.w11-page .page-sub{ font-size: 17px; }
.w11-page .w11-title h2{ font-size: 24px; }
.w11-page .w11-title p{ font-size: 16px; }
.w11-page .w11-card h3{ font-size: 20px; }
.w11-page .w11-card p{ font-size: 16px; }
.w11-page .w11-row-left h4{ font-size: 18px; }
.w11-page .muted{ font-size: 15px; }
.w11-page .w11-detail-box h3{ font-size: 18px; }
.w11-page .w11-detail-text{ font-size: 16px; }
.w11-page .w11-textarea{ font-size: 16px; }
.w11-page .w11-hint{ font-size: 15px; }
.w11-page .w11-note{ font-size: 15px; }
.w11-page #w11-sample-answer{ font-size: 22px; line-height: 1.7; }
.w11-mark{
  background: #ffe08a;
  color: inherit;
  padding: 0 2px;
  border-radius: 4px;
}

/* Writing Task 1.1 - Jumbled Email Game */
.w11-card-jumble{
  border-color: rgba(14,165,164,0.16);
  background:
    radial-gradient(180px 80px at 90% 0%, rgba(14,165,164,0.10), transparent 65%),
    rgba(255,255,255,0.8);
}
.w11-card-jumble .w11-emoji{
  background: rgba(20,184,166,0.12);
}

.w11j-hero{
  border: 1px solid rgba(15,23,42,0.06);
  background:
    radial-gradient(280px 120px at 10% 0%, rgba(251,146,60,0.10), transparent 70%),
    radial-gradient(260px 120px at 95% 5%, rgba(20,184,166,0.10), transparent 70%),
    rgba(255,255,255,0.86);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.05);
  display: grid;
  gap: 12px;
}
.w11j-eyebrow{
  margin: 0 0 6px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.w11j-hero h3{
  margin: 0;
  color: #0f172a;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.w11j-hero-copy p:last-child{
  margin: 6px 0 0;
  color:#6b7280;
}
.w11j-hero-badges{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}
.w11j-chip{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  border:1px solid rgba(15,23,42,0.08);
  background:#fff;
  color:#334155;
  border-radius:999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.w11j-groups{
  display:grid;
  gap: 14px;
  margin-top: 14px;
  max-width: 1180px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.w11j-group{
  border: 1px solid rgba(15,23,42,0.07);
  border-radius: 18px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 10px 22px rgba(0,0,0,0.05);
  overflow: hidden;
}
.w11j-group-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(15,23,42,0.05);
}
.w11j-group-head h3{
  margin: 0;
  font-size: 17px;
  color:#0f172a;
}
.w11j-group-head p{
  margin: 5px 0 0;
  color:#6b7280;
  font-size: 13px;
}
.w11j-group-pill{
  border-radius: 999px;
  border: 1px solid rgba(14,165,164,0.16);
  color: #0f766e;
  background: rgba(240,253,250,0.85);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.w11j-group-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  padding: 12px;
}
.w11j-ex-btn{
  border: 1px solid rgba(15,23,42,0.07);
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  text-align:left;
  display:grid;
  gap: 6px;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
  box-shadow: 0 8px 18px rgba(0,0,0,0.04);
}
.w11j-ex-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(14,165,164,0.22);
  box-shadow: 0 12px 22px rgba(14,165,164,0.08);
}
.w11j-ex-btn.is-locked{
  cursor: not-allowed;
  opacity: .85;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,250,252,0.92));
}
.w11j-ex-btn.is-done{
  border-color: rgba(134,239,172,0.9);
  background: #f0fdf4;
}
.w11j-ex-btn.is-locked:hover{
  transform:none;
  box-shadow: 0 8px 18px rgba(0,0,0,0.04);
  border-color: rgba(15,23,42,0.07);
}
.w11j-ex-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 8px;
}
.w11j-ex-code{
  font-size: 12px;
  font-weight: 900;
  color:#0f172a;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.w11j-status{
  border-radius:999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.w11j-status.ready{
  color:#166534;
  background: rgba(220,252,231,0.9);
  border:1px solid rgba(134,239,172,0.8);
}
.w11j-status.soon{
  color:#475569;
  background: rgba(241,245,249,0.9);
  border:1px solid rgba(203,213,225,0.8);
}
.w11j-status.locked{
  color:#475569;
  background: rgba(241,245,249,0.9);
  border:1px solid rgba(203,213,225,0.8);
}
.w11j-status.done{
  color:#166534;
  background: rgba(220,252,231,0.9);
  border:1px solid rgba(134,239,172,0.9);
}
.w11j-ex-title{
  font-weight: 800;
  color:#0f172a;
  font-size: 14px;
}
.w11j-ex-desc{
  color:#6b7280;
  font-size: 12.5px;
  line-height: 1.35;
}

.w11j-game-shell{
  --w11j-tray-space: 180px;
  display:grid;
  gap: 14px;
  padding-bottom: var(--w11j-tray-space);
  max-width: 1180px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

#w11-jumble-index .w11j-hero{
  max-width: 1180px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

#w11-jumble-play .w11-topbar{
  max-width: 1180px;
  width: 100%;
  margin: 12px auto 16px;
}
.w11j-game-card{
  border: 1px solid rgba(15,23,42,0.06);
  background: rgba(255,255,255,0.9);
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(0,0,0,0.05);
  padding: 14px;
}
.w11j-head-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 12px;
}
.w11j-badge-row{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.w11j-pill{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.08);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  color:#334155;
}
.w11j-pill.ok{
  border-color: rgba(134,239,172,0.8);
  background: rgba(240,253,244,0.9);
  color:#166534;
}
.w11j-task-title{
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
  color:#0f172a;
}
.w11j-task-sub{
  margin: 8px 0 0;
  color:#6b7280;
  line-height: 1.5;
  white-space: pre-line;
}

.w11j-help-box{
  border: 1px dashed rgba(14,165,164,0.22);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(240,253,250,0.7));
  padding: 12px;
}
.w11j-help-box h4{
  margin: 0 0 6px;
  font-size: 14px;
  color:#0f172a;
}
.w11j-help-list{
  margin: 0;
  padding-left: 18px;
  color:#475569;
  line-height: 1.45;
  font-size: 13px;
}

.w11j-board{
  display:grid;
  gap: 10px;
}
.w11j-line{
  border: 1px solid rgba(15,23,42,0.07);
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  display:grid;
  gap: 8px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.w11j-line.is-active{
  border-color: rgba(14,165,164,0.35);
  box-shadow: 0 0 0 3px rgba(20,184,166,0.10);
}
.w11j-line.is-correct{
  border-color: rgba(34,197,94,0.28);
  background: rgba(240,253,244,0.7);
}
.w11j-line.is-wrong{
  border-color: rgba(239,68,68,0.22);
  background: rgba(254,242,242,0.75);
}
.w11j-line.is-complete:not(.is-correct):not(.is-wrong){
  border-color: rgba(59,130,246,0.22);
  background: rgba(239,246,255,0.65);
}
.w11j-line-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 8px;
}
.w11j-line-label{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  color:#0f766e;
}
.w11j-line-hint{
  color:#64748b;
  font-size: 12px;
}
.w11j-slot-row{
  display:flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
}
.w11j-slot{
  min-height: 36px;
  min-width: 46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px dashed rgba(15,23,42,0.12);
  background: rgba(248,250,252,0.9);
  color:#94a3b8;
  font-weight: 700;
  font-size: 13px;
}
.w11j-slot.is-filled{
  color:#0f172a;
  border-style: solid;
  border-color: rgba(15,23,42,0.08);
  background: #fff;
  cursor: pointer;
}

.w11j-tray-wrap{
  border: 1px solid rgba(15,23,42,0.06);
  background: rgba(255,255,255,0.92);
  border-radius: 18px;
  padding: 14px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 12px 26px rgba(0,0,0,0.05);
  display:flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  backdrop-filter: blur(10px);
}
.w11j-tray-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.w11j-tray-title{
  margin:0;
  font-size: 16px;
  color:#0f172a;
}
.w11j-tray-sub{
  margin: 4px 0 0;
  color:#6b7280;
  font-size: 13px;
}
.w11j-progress{
  border-radius: 12px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
  color:#334155;
  border: 1px solid rgba(15,23,42,0.08);
  background: rgba(255,255,255,0.9);
}
.w11j-chip-bank{
  display:flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  order: 3;
  justify-content: center;
  align-content: flex-start;
}
.w11j-word{
  border: none;
  background: transparent;
  color:#0f172a;
  border-radius: 0;
  padding: 2px 1px;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .12s ease, color .12s ease, opacity .12s ease, text-decoration-color .12s ease;
  box-shadow: none;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(20,184,166,0.35);
  text-underline-offset: 5px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.w11j-word:hover{
  transform: translateY(-1px);
  color:#0f766e;
  text-decoration-color: rgba(20,184,166,0.8);
}
.w11j-word:disabled{
  opacity: .32;
  cursor: not-allowed;
  transform:none;
  box-shadow:none;
  text-decoration-color: rgba(148,163,184,0.2);
}

.w11j-controls{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  order: 2;
}
.w11j-btn{
  border: 1px solid rgba(15,23,42,0.08);
  background: #fff;
  color:#0f172a;
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 42px;
  font-weight: 700;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.w11j-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0,0,0,0.06);
}
.w11j-btn:disabled{
  opacity: .5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.w11j-btn.primary{
  border-color: rgba(14,165,164,0.22);
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  color:#fff;
  box-shadow: 0 12px 22px rgba(13,148,136,0.22);
}
.w11j-btn.warn{
  border-color: rgba(251,146,60,0.22);
  background: rgba(255,247,237,0.92);
  color:#9a3412;
}

.w11j-feedback{
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.06);
  background: rgba(255,255,255,0.92);
  padding: 12px;
  display:grid;
  gap: 6px;
}
.w11j-feedback-title{
  margin:0;
  font-weight: 800;
  color:#0f172a;
}
.w11j-feedback-text{
  margin:0;
  color:#475569;
  line-height: 1.45;
}
.w11j-email-preview{
  margin-top: 2px;
  border-radius: 12px;
  border: 1px dashed rgba(15,23,42,0.12);
  background: rgba(248,250,252,0.88);
  padding: 10px;
  color:#0f172a;
  line-height: 1.55;
  white-space: pre-line;
  font-size: 14px;
}
.w11j-edit-panel{
  display:grid;
  gap: 12px;
}
.w11j-edit-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.w11j-edit-kicker{
  margin:0;
  color:#0f766e;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 12px;
}
.w11j-edit-sub{
  margin: 6px 0 0;
  color:#475569;
  line-height: 1.45;
}
.w11j-edit-source-card{
  border: 1px solid rgba(15,23,42,0.08);
  background: rgba(255,255,255,0.92);
  border-radius: 14px;
  padding: 10px;
  display:grid;
  gap: 8px;
}
.w11j-edit-source-title{
  margin:0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  color:#0f766e;
}
.w11j-edit-source-preview{
  margin-top: 0;
}
.w11j-edit-textarea-wrap{
  display:grid;
  gap: 8px;
}
.w11j-edit-rewrite-label{
  font-weight: 800;
  color:#0f172a;
}
.w11j-edit-textarea{
  width: 100%;
  min-height: 220px;
  border: 1px solid rgba(15,23,42,0.12);
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.55;
  color:#0f172a;
  outline: none;
  resize: vertical;
  font-family: inherit;
}
.w11j-edit-textarea:focus{
  border-color: rgba(14,165,164,0.35);
  box-shadow: 0 0 0 3px rgba(20,184,166,0.10);
}
.w11j-edit-textarea.is-wrong{
  border-color: rgba(239,68,68,0.28);
  background: rgba(254,242,242,0.85);
}
.w11j-edit-checklist{
  display:grid;
  gap: 8px;
}
.w11j-edit-checklist-title{
  margin:0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  color:#0f766e;
}
.w11j-edit-check-row{
  border: 1px solid rgba(15,23,42,0.08);
  background: rgba(255,255,255,0.92);
  border-radius: 12px;
  padding: 9px 10px;
  display:grid;
  gap: 6px;
}
.w11j-edit-check-row.is-correct{
  border-color: rgba(34,197,94,0.28);
  background: rgba(240,253,244,0.75);
}
.w11j-edit-check-row.is-wrong{
  border-color: rgba(239,68,68,0.22);
  background: rgba(254,242,242,0.8);
}
.w11j-edit-check-row-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.w11j-edit-check-row-text{
  margin:0;
  color:#334155;
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}
.w11j-edit-grid{
  display:grid;
  gap: 10px;
}
.w11j-edit-row{
  border: 1px solid rgba(15,23,42,0.08);
  background: rgba(255,255,255,0.92);
  border-radius: 14px;
  padding: 10px;
  display:grid;
  gap: 7px;
}
.w11j-edit-row.is-correct{
  border-color: rgba(34,197,94,0.28);
  background: rgba(240,253,244,0.75);
}
.w11j-edit-row.is-wrong{
  border-color: rgba(239,68,68,0.22);
  background: rgba(254,242,242,0.8);
}
.w11j-edit-row-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.w11j-edit-line-label{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  color:#0f766e;
}
.w11j-edit-status{
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(15,23,42,0.08);
  background: rgba(255,255,255,0.9);
  color:#334155;
}
.w11j-edit-row.is-correct .w11j-edit-status{
  color:#166534;
  border-color: rgba(134,239,172,0.8);
  background: rgba(220,252,231,0.9);
}
.w11j-edit-row.is-wrong .w11j-edit-status{
  color:#991b1b;
  border-color: rgba(252,165,165,0.7);
  background: rgba(254,226,226,0.9);
}
.w11j-edit-hint{
  margin:0;
  color:#64748b;
  font-size: 12px;
}
.w11j-edit-source{
  margin:0;
  color:#475569;
  font-size: 12.5px;
  line-height: 1.4;
  background: rgba(248,250,252,0.9);
  border: 1px dashed rgba(148,163,184,0.28);
  border-radius: 10px;
  padding: 7px 9px;
}
.w11j-edit-input{
  width: 100%;
  border: 1px solid rgba(15,23,42,0.12);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  color:#0f172a;
  outline: none;
}
.w11j-edit-input:focus{
  border-color: rgba(14,165,164,0.35);
  box-shadow: 0 0 0 3px rgba(20,184,166,0.10);
}
.w11j-edit-row.is-correct .w11j-edit-input{
  border-color: rgba(34,197,94,0.28);
}
.w11j-edit-row.is-wrong .w11j-edit-input{
  border-color: rgba(239,68,68,0.25);
}
.w11j-edit-actions{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}
.w11j-edit-feedback{
  margin: 0;
  color:#334155;
  line-height: 1.45;
  font-weight: 600;
}
@media (max-width: 700px){
  .w11j-edit-textarea{
    min-height: 180px;
    font-size: 14px;
  }
}
.w11j-complete{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.06);
  background:
    radial-gradient(circle at 12% 14%, rgba(14,165,164,0.12), transparent 44%),
    radial-gradient(circle at 88% 18%, rgba(251,191,36,0.16), transparent 48%),
    rgba(255,255,255,0.94);
  box-shadow: 0 18px 36px rgba(0,0,0,0.06);
  padding: 18px 16px 16px;
  display:grid;
  gap: 14px;
}
.w11j-balloons{
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .9;
}
.w11j-balloon{
  position: absolute;
  bottom: -22px;
  width: 20px;
  height: 24px;
  border-radius: 50% 50% 48% 48%;
  box-shadow: inset -4px -5px 0 rgba(255,255,255,0.22);
  animation: w11jBalloonFloat 6.8s linear infinite;
}
.w11j-balloon::after{
  content:"";
  position:absolute;
  left:50%;
  top:100%;
  width: 1.5px;
  height: 28px;
  background: rgba(148,163,184,0.55);
  transform: translateX(-50%);
}
.w11j-balloon.b1{ left: 6%; background:#fb7185; animation-delay: -0.8s; }
.w11j-balloon.b2{ left: 20%; width: 18px; height: 22px; background:#f59e0b; animation-delay: -3.2s; }
.w11j-balloon.b3{ left: 36%; width: 22px; height: 26px; background:#22c55e; animation-delay: -1.6s; }
.w11j-balloon.b4{ left: 58%; background:#38bdf8; animation-delay: -4.3s; }
.w11j-balloon.b5{ left: 76%; width: 19px; height: 23px; background:#a78bfa; animation-delay: -2.1s; }
.w11j-balloon.b6{ left: 90%; width: 21px; height: 25px; background:#f97316; animation-delay: -5.1s; }
@keyframes w11jBalloonFloat{
  0% { transform: translateY(0) translateX(0) rotate(-2deg); opacity: 0; }
  8% { opacity: .95; }
  50% { transform: translateY(-180px) translateX(6px) rotate(2deg); }
  100% { transform: translateY(-350px) translateX(-5px) rotate(-3deg); opacity: 0; }
}
.w11j-complete-copy{
  position: relative;
  z-index: 1;
  display:grid;
  gap: 6px;
}
.w11j-complete-kicker{
  margin:0;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
  color:#0f172a;
}
.w11j-complete-sub{
  margin:0;
  color:#334155;
  line-height: 1.45;
}
.w11j-complete-letter-box{
  position: relative;
  z-index: 1;
  display:grid;
  gap: 8px;
}
.w11j-complete-letter-title{
  margin:0;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  color:#0f766e;
}
.w11j-complete-letter{
  margin-top: 0;
  border-style: solid;
  border-color: rgba(14,165,164,0.18);
  background: rgba(255,255,255,0.95);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.65);
}
.w11j-complete-actions{
  position: relative;
  z-index: 1;
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}
.w11j-complete-note{
  position: relative;
  z-index: 1;
  margin: 0;
  color:#475569;
  font-size: 13px;
}
.w11j-complete-share-hint{
  position: relative;
  z-index: 1;
  margin: -4px 0 0;
  color:#0f766e;
  font-size: 13px;
  font-weight: 700;
}
@media (prefers-reduced-motion: reduce){
  .w11j-balloon{ animation: none; opacity: .18; }
}

@media (max-width: 980px){
  .w11j-head-grid{
    grid-template-columns: 1fr;
  }
  .w11j-game-shell{
    --w11j-tray-space: 205px;
  }
}

/* responsive */
@media (max-width: 1100px){
  .w11-grid{ grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .video-list{ grid-template-columns: repeat(2, minmax(240px, 1fr)); }
  .w11-detail{ grid-template-columns: 1fr; }
}
@media (max-width: 720px){
  .w11-grid{ grid-template-columns: 1fr; }
  .video-list{ grid-template-columns: 1fr; }
  .page-head h1{ font-size: 26px; }
  .w11j-group-grid{ grid-template-columns: 1fr; }
  .w11j-slot{ min-height: 34px; padding: 6px 8px; }
  .w11j-game-shell{ --w11j-tray-space: 230px; }
  .w11j-tray-wrap{
    bottom: 6px;
    padding: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .w11j-tray-head{
    gap: 8px;
  }
  .w11j-chip-bank{
    max-height: min(34vh, 220px);
    overflow-y: auto;
    overscroll-behavior: contain;
    justify-content: flex-start;
    padding-right: 4px;
  }
  .w11j-word{
    font-size: 17px;
    padding: 4px 1px;
  }
  .w11j-controls{
    display:grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .w11j-controls .w11j-btn{
    width: 100%;
    text-align: center;
  }
  .w11j-controls .w11j-btn:last-child{
    grid-column: 1 / -1;
  }
  .w11j-complete-kicker{
    font-size: 19px;
  }
  .w11j-complete-actions{
    gap: 8px;
  }
  .w11j-btn{
    padding: 8px 10px;
    font-size: 13px;
  }
}
@media (max-width: 520px){
  .w11j-group-head{
    flex-direction: column;
  }
  .w11j-group-pill{
    align-self: flex-start;
  }
  .w11j-line-top{
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .w11j-slot-row{
    justify-content: flex-start;
  }
  .w11j-edit-actions,
  .w11j-complete-actions{
    display:grid;
    grid-template-columns: 1fr;
  }
  .w11j-edit-actions .w11j-btn,
  .w11j-complete-actions .w11j-btn{
    width: 100%;
  }
}

/* Writing Task 1.1 roadmap (list-style path) */
.w11-roadmap-head{
  border: 1px solid rgba(0,0,0,0.08);
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.82));
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.05);
}
.w11-roadmap-kicker{
  margin: 0 0 4px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 12px;
  color: #e53935;
}
.w11-roadmap-head h2{
  margin: 0;
  font-size: 26px;
}
.w11-roadmap-head p:last-child{
  margin: 8px 0 0;
  color: #6b7280;
}

.w11-roadmap-list{
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.w11-roadmap-item{
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(0,0,0,0.07);
  background: rgba(255,255,255,0.9);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}
.w11-roadmap-number{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #f97316);
}
.w11-roadmap-content h3{
  margin: 0;
  font-size: 17px;
}
.w11-roadmap-content p{
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 14px;
}
.w11-roadmap-line{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.w11-roadmap-tag{
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fecaca;
}
.w11-roadmap-state{
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  border: 1px solid transparent;
  white-space: nowrap;
}
.w11-roadmap-state.is-open{
  color: #0f766e;
  background: #ccfbf1;
  border-color: #99f6e4;
}
.w11-roadmap-state.is-locked{
  color: #475569;
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.w11-roadmap-state.is-complete{
  color: #166534;
  background: #dcfce7;
  border-color: #86efac;
}
.w11-roadmap-item.is-complete{
  border-color: rgba(134,239,172,0.8);
  background: #f0fdf4;
}
.w11-roadmap-item.is-locked{
  border-style: dashed;
}
.w11-roadmap-action[disabled],
.w11-roadmap-action.is-locked{
  background: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
}
.w11-roadmap-action[disabled]:hover,
.w11-roadmap-action.is-locked:hover{
  transform: none;
  box-shadow: none;
}
.w11-roadmap-tools{
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.w11-roadmap-tools .ghost-btn{
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.w11-step-layout{
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 14px;
}
.w11-step-meta{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.w11-step-meta-card{
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.9);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.05);
}
.w11-step-meta-label{
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  font-weight: 800;
  color: #6b7280;
}
.w11-step-meta-number{
  margin-top: 6px;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  color: #111827;
}
.w11-step-meta-title{
  margin-top: 6px;
  font-weight: 700;
  color: #111827;
}
.w11-step-meta-chip{
  margin-top: 8px;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #0f766e;
  background: #ccfbf1;
  border: 1px solid #99f6e4;
}
.w11-step-meta-card p{
  margin: 10px 0 0;
  font-size: 13.5px;
  color: #6b7280;
  line-height: 1.55;
}

.w11-step-main{
  min-width: 0;
}
.w11-step-stack{
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.w11-step-card{
  border: 1px solid rgba(0,0,0,0.07);
  background: rgba(255,255,255,0.9);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.05);
}
.w11-step-card h3{
  margin: 0;
}
.w11-step-card p{
  margin: 6px 0 0;
  color: #6b7280;
}
.w11-step-card .video-wrapper{
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
}
.w11-step-sample-block{
  margin-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 10px;
}
.w11-step-sample-block h4{
  margin: 0 0 6px;
  font-size: 14px;
}
.w11-phrase-list{
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.w11-phrase-list li{
  color: #1f2937;
}

.w11-mini-test{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.w11-mini-question{
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}
.w11-mini-question h4{
  margin: 0 0 8px;
  font-size: 15px;
}
.w11-mini-options{
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.w11-mini-option{
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.45;
}
.w11-mini-question.is-correct{
  border-color: #86efac;
  background: #f0fdf4;
}
.w11-mini-question.is-wrong{
  border-color: #fca5a5;
  background: #fff1f2;
}
.w11-hint.is-success{
  color: #166534;
}
.w11-hint.is-fail{
  color: #b91c1c;
}
.w11-mini-feedback{
  margin-top: 8px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  color: #1f2937;
  font-weight: 500;
}
.w11-mini-feedback p{
  margin: 0 0 8px;
  color: inherit;
  line-height: 1.55;
}
.w11-mini-feedback p:last-child{
  margin-bottom: 0;
}
.w11-mini-feedback ul{
  margin: 0 0 8px 20px;
  padding: 0;
}
.w11-mini-feedback li{
  margin: 0 0 4px;
  color: inherit;
}
.w11-mini-feedback li:last-child{
  margin-bottom: 0;
}
.w11-mini-feedback-score{
  font-weight: 700;
}
.w11-mini-feedback-title{
  font-weight: 800;
}
.w11-mini-feedback.is-pass{
  border-color: #86efac;
  background: #f0fdf4;
}
.w11-mini-feedback.is-low{
  border-color: #fca5a5;
  background: #fff1f2;
}
.w11-mini-feedback.is-mid{
  border-color: #fdba74;
  background: #fff7ed;
}
.w11-mini-feedback.is-near{
  border-color: #fde68a;
  background: #fefce8;
}

@media (max-width: 980px){
  .w11-step-layout{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px){
  .w11-roadmap-item{
    grid-template-columns: auto 1fr;
    align-items: start;
  }
  .w11-roadmap-line{
    gap: 6px;
  }
  .w11-roadmap-state{
    font-size: 10px;
    padding: 4px 8px;
  }
  .w11-roadmap-item .pill-btn{
    grid-column: 1 / -1;
    width: 100%;
  }
  .w11-roadmap-tools .ghost-btn{
    width: 100%;
    text-align: center;
  }
}
