@media (max-width:480px){.game-header{padding:56px 8px 6px}.home-btn{width:40px;height:40px;font-size:1.2rem;top:10px;left:10px}}
*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{width:100%;height:100%;overflow:hidden;font-family:'Zen Maru Gothic',sans-serif;user-select:none;touch-action:manipulation}
body{background:linear-gradient(180deg,#F3E5F5 0%,#E1BEE7 100%)}
.home-btn{position:fixed;top:12px;left:12px;width:48px;height:48px;background:#fff;border-radius:50%;display:flex;justify-content:center;align-items:center;font-size:1.4rem;text-decoration:none;box-shadow:0 4px 12px rgba(0,0,0,.15);z-index:9999;border:3px solid #AB47BC}
#game-container{width:100%;height:100%;display:flex;flex-direction:column;padding:8px 14px 14px;overflow:hidden}
.game-header{display:flex;justify-content:space-between;align-items:center;flex-shrink:0;margin-bottom:6px;gap:10px}
.title-badge{background:#fff;padding:8px 14px;border-radius:18px;font-weight:700;display:flex;align-items:center;gap:8px;box-shadow:0 3px 0 #CE93D8;font-size:1rem;z-index:10}
.level-pill{background:#fff;padding:8px 12px;border-radius:16px;font-weight:700;box-shadow:0 3px 0 #CE93D8;font-size:.85rem;z-index:10}
#streak{color:#7B1FA2}
.instruction{flex:1;text-align:center;font-size:1.1rem;color:#4A148C;margin-bottom:0;font-weight:700;line-height:1.2}
.lanes{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:10px;flex:1;min-height:0}
.lane{flex:1;max-width:42%;background:rgba(255,255,255,.85);border-radius:18px;padding:10px 8px;box-shadow:0 4px 14px rgba(0,0,0,.08);border:3px solid #CE93D8;display:flex;flex-direction:column;align-items:center;min-height:min(28vh,200px)}
.lane-head{display:flex;align-items:baseline;justify-content:center;gap:6px;flex-wrap:wrap;margin-bottom:6px}
.lane-label{font-weight:900;font-size:.75rem;color:#7B1FA2}
.lane-count{font-weight:900;font-size:clamp(1.1rem,4.5vmin,1.5rem);color:#4A148C;min-width:1.2ch;text-align:center}
.lane-count-unit{font-size:.7rem;font-weight:700;color:#7B1FA2}
.icons{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;align-content:center;align-items:center;flex:1}
.icons span{font-size:clamp(1.6rem,6vmin,2.2rem);line-height:1}
.plus{font-size:1.8rem;font-weight:900;color:#6A1B9A;flex-shrink:0}
.equals{text-align:center;font-size:1.5rem;font-weight:900;color:#4A148C;margin:8px 0;flex-shrink:0}
.answer-row{display:flex;justify-content:center;flex-shrink:0;margin-bottom:4px}
.answer-slot{width:min(92vw,320px);min-height:72px;padding:12px 16px;border-radius:20px;border:4px dashed #9575CD;background:rgba(255,255,255,.75);font-weight:900;font-size:clamp(1.1rem,4vmin,1.35rem);color:#6A1B9A;display:flex;align-items:center;justify-content:center;text-align:center;line-height:1.3;box-shadow:inset 0 2px 8px rgba(106,27,154,.08);transition:background .15s,border-color .15s,box-shadow .15s}
.answer-slot.has-value{border-style:solid;border-color:#7B1FA2;background:#fff;box-shadow:0 4px 0 #512DA8;font-size:clamp(1.6rem,6vmin,2.2rem);color:#4A148C}
.answer-slot.drag-over{border-color:#AB47BC;background:#F3E5F5;box-shadow:inset 0 0 0 3px rgba(171,71,188,.35)}
.dnd-hint{text-align:center;font-size:.72rem;color:#6A1B9A;margin-bottom:8px;flex-shrink:0;line-height:1.35}
.choices{display:flex;flex-direction:row;flex-wrap:wrap;gap:10px;justify-content:center;flex-shrink:0;padding-bottom:4px}
.choices-strip{touch-action:none}
.choice-panel{font-family:inherit;font-weight:900;font-size:clamp(1.4rem,5vmin,2rem);min-width:64px;padding:14px 20px;border-radius:16px;border:4px solid #7B1FA2;background:#fff;color:#4A148C;cursor:grab;box-shadow:0 4px 0 #4A148C;touch-action:none;-webkit-user-select:none;user-select:none}
.choice-panel:active{cursor:grabbing}
.choice-panel.dragging-source{opacity:.35}
.choice-ghost{position:fixed;z-index:10001;pointer-events:none;font-family:inherit;font-weight:900;font-size:clamp(1.4rem,5vmin,2rem);min-width:64px;padding:14px 20px;border-radius:16px;border:4px solid #7B1FA2;background:#fff;color:#4A148C;box-shadow:0 8px 24px rgba(0,0,0,.2);transform:translate(-50%,-50%);left:0;top:0}
.overlay{position:fixed;inset:0;background:rgba(0,0,0,.4);display:flex;align-items:center;justify-content:center;z-index:10000;padding:16px}
.overlay.hidden{display:none!important}
.overlay-card{background:#fff;border-radius:22px;padding:22px;max-width:280px;width:100%;text-align:center;box-shadow:0 12px 36px rgba(0,0,0,.2)}
.overlay-title{font-size:1.25rem;font-weight:900;color:#7B1FA2;margin-bottom:14px}
.overlay-btn{width:100%;font-family:inherit;font-weight:700;padding:12px;border-radius:16px;border:none;background:#AB47BC;color:#fff;cursor:pointer;box-shadow:0 4px 0 #6A1B9A}
.overlay-btn.secondary{background:#9575CD;box-shadow:0 4px 0 #512DA8}
@media (orientation:portrait){.lane{max-width:46%;min-height:min(32vh,220px)}}
@media screen and (max-height: 500px) {
  #game-container { 
    margin-left: 80px !important; 
    width: calc(100% - 80px) !important;
    padding: 10px 14px 14px !important; 
  }
  .game-header { 
    margin-bottom: 2px;
    padding: 4px 14px !important;
  }
  .title-badge, .level-pill { font-size: 0.8rem; padding: 4px 12px; }
  .instruction { font-size: 0.8rem; margin-bottom: 0; }
  .dnd-hint { font-size: 0.65rem; margin-bottom: 2px; }
  .lanes { gap: 6px; flex: 1; }
  .lane { padding: 4px; border-width: 2px; min-height: 100px; }
  /* ... rest of existing compact styles ... */
  .lane-head { margin-bottom: 2px; }
  .lane-label, .lane-count-unit { font-size: 0.6rem; }
  .lane-count { font-size: 1.1rem; }
  .icons span { font-size: 1.35rem; }
  .plus { font-size: 1.2rem; }
  .equals { font-size: 1rem; margin: 4px 0; }
  .answer-slot { min-height: 44px; padding: 4px; border-radius: 12px; font-size: 0.9rem; max-width: 200px; }
  .answer-slot.has-value { font-size: 1.4rem; }
  .choice-panel { min-width: 48px; padding: 6px 14px; font-size: 1.2rem; border-radius: 10px; border-width: 3px; }
}