.phil-app,
.phil-app * { box-sizing: border-box; }

.phil-app {
  --ink: #251843;
  --muted: #716885;
  --purple-950: #251042;
  --purple-900: #38145f;
  --purple-800: #522079;
  --purple-700: #6f34a3;
  --purple-600: #8650bd;
  --purple-500: #9d70cf;
  --purple-200: #ddcaf1;
  --purple-100: #f0e8fa;
  --purple-50: #faf7fd;
  --yellow: #ffd84d;
  --yellow-soft: #fff6c7;
  --blue: #377ee8;
  --green: #169b72;
  --red: #dc4960;
  --white: #fff;
  --line: #e5def0;
  --shadow: 0 16px 45px rgba(62, 31, 99, .12);
  color: var(--ink);
  background: #f8f5fc;
  border: 1px solid #e6def0;
  border-radius: 26px;
  box-shadow: var(--shadow);
  font-family: Inter, ui-rounded, "Trebuchet MS", Arial, sans-serif;
  line-height: 1.5;
  margin: 24px auto;
  max-width: 1240px;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.phil-app button,
.phil-app input { font: inherit; }
.phil-app button { cursor: pointer; }
.phil-app button:focus-visible,
.phil-app input:focus-visible,
.phil-app [tabindex="0"]:focus-visible { outline: 3px solid #f1bd28; outline-offset: 3px; }
.phil-app button:disabled { cursor: default; opacity: .72; }
.phil-app h2,
.phil-app h3,
.phil-app h4,
.phil-app p { margin-top: 0; }

.phil-stars i {
  animation: philTwinkle 2.4s infinite alternate;
  background: #fff;
  border-radius: 50%;
  height: 4px;
  opacity: .55;
  pointer-events: none;
  position: absolute;
  width: 4px;
  z-index: 3;
}
.phil-stars i:nth-child(1) { left: 7%; top: 34px; }
.phil-stars i:nth-child(2) { animation-delay: .4s; left: 24%; top: 63px; }
.phil-stars i:nth-child(3) { animation-delay: .8s; left: 47%; top: 29px; }
.phil-stars i:nth-child(4) { animation-delay: 1.1s; right: 36%; top: 79px; }
.phil-stars i:nth-child(5) { animation-delay: .2s; right: 22%; top: 36px; }
.phil-stars i:nth-child(6) { animation-delay: 1.4s; right: 5%; top: 88px; }

.phil-hero {
  align-items: center;
  background:
    radial-gradient(circle at 77% 10%, rgba(189, 128, 246, .24), transparent 27%),
    linear-gradient(125deg, #22103d 0%, #4b1974 55%, #7135a1 100%);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  min-height: 330px;
  overflow: hidden;
  padding: 58px 74px 52px;
  position: relative;
}
.phil-hero::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent);
  content: "";
  height: 160%;
  left: -30%;
  position: absolute;
  top: -30%;
  transform: rotate(20deg);
  width: 18%;
  animation: philShine 8s linear infinite;
}
.phil-hero-copy { position: relative; z-index: 2; }
.phil-kicker,
.phil-step,
.phil-mini-label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.4px;
}
.phil-kicker { color: #e3cafa; }
.phil-hero h2 {
  color: #fff;
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1;
  margin: 13px 0 17px;
}
.phil-hero p { color: #eee3f9; font-size: 18px; margin-bottom: 28px; max-width: 620px; }
.phil-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.phil-btn {
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 13px;
  color: var(--ink);
  display: inline-flex;
  font-size: 14px;
  font-weight: 850;
  gap: 8px;
  justify-content: center;
  line-height: 1.25;
  min-height: 45px;
  padding: 11px 18px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.phil-btn:hover { box-shadow: 0 8px 18px rgba(35, 16, 61, .16); transform: translateY(-2px); }
.phil-btn-primary { background: var(--yellow); color: #332300; box-shadow: 0 7px 18px rgba(255, 216, 77, .22); }
.phil-btn-ghost { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); color: #fff; }
.phil-btn-soft { background: var(--purple-100); color: var(--purple-900); }
.phil-wide { width: 100%; }

.phil-hero-visual { height: 250px; position: relative; z-index: 2; }
.phil-hero-bulb {
  align-items: center;
  animation: philFloat 3.5s ease-in-out infinite;
  background: radial-gradient(circle at 34% 30%, #fffbd6 0 14%, #ffe15f 45%, #f0aa22 100%);
  border: 8px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 36px #ffd95b, 0 0 80px rgba(255, 220, 87, .34);
  display: flex;
  font-size: 50px;
  height: 105px;
  justify-content: center;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 105px;
  z-index: 3;
}
.phil-hero-bulb::after { background: #9c6723; border-radius: 0 0 10px 10px; bottom: -24px; content: ""; height: 27px; left: 34px; position: absolute; width: 36px; }
.phil-orbit { border: 1px solid rgba(255,255,255,.19); border-radius: 50%; left: 50%; position: absolute; top: 50%; transform: translate(-50%,-50%); }
.phil-orbit-a { height: 190px; width: 190px; }
.phil-orbit-b { height: 250px; width: 250px; }
.phil-hero-ray { background: linear-gradient(90deg, rgba(255,224,82,.9), transparent); height: 3px; left: 50%; position: absolute; top: 50%; transform-origin: left; width: 145px; }
.phil-ray-1 { transform: rotate(12deg); }.phil-ray-2 { transform: rotate(96deg); }.phil-ray-3 { transform: rotate(180deg); }.phil-ray-4 { transform: rotate(250deg); }

.phil-progress-wrap {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: 145px 1fr 38px;
  padding: 16px 52px;
}
.phil-progress-copy { display: flex; flex-direction: column; font-size: 12px; }
.phil-progress-copy strong { font-size: 15px; }
.phil-progress { background: #ece7f2; border-radius: 99px; height: 10px; overflow: hidden; }
.phil-progress span { background: linear-gradient(90deg, var(--purple-700), #bd82e9, var(--yellow)); border-radius: inherit; display: block; height: 100%; transition: width .5s ease; width: 0; }
.phil-icon-btn { background: transparent; border: 0; border-radius: 50%; color: var(--purple-700); font-size: 22px; height: 36px; width: 36px; }
.phil-icon-btn:hover { background: var(--purple-100); }

.phil-nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 0 34px;
}
.phil-nav button {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 4px solid transparent;
  color: #746a83;
  display: flex;
  gap: 10px;
  justify-content: center;
  min-height: 82px;
  padding: 11px 8px 8px;
  position: relative;
}
.phil-nav button:hover { background: var(--purple-50); }
.phil-nav button.is-active { border-bottom-color: var(--purple-700); color: var(--purple-900); }
.phil-nav button.is-complete::after { align-items: center; background: var(--green); border: 2px solid #fff; border-radius: 50%; color: #fff; content: "✓"; display: flex; font-size: 8px; font-weight: 900; height: 17px; justify-content: center; position: absolute; right: 9px; top: 9px; width: 17px; }
.phil-nav-icon { align-items: center; background: var(--purple-100); border-radius: 13px; display: inline-flex; flex: 0 0 36px; font-size: 20px; height: 36px; justify-content: center; }
.phil-nav button.is-active .phil-nav-icon { background: var(--purple-700); color: #fff; }
.phil-nav b,
.phil-nav small { display: block; line-height: 1.25; text-align: left; }
.phil-nav b { font-size: 13px; }
.phil-nav small { font-size: 10px; font-weight: 650; margin-top: 3px; }

.phil-main { padding: 42px 48px 54px; }
.phil-view { animation: philEnter .4s ease both; }
.phil-view[hidden],
.phil-view:not(.is-active) { display: none !important; }
.phil-view.is-active { display: block; }
.phil-section-head { align-items: flex-start; display: flex; gap: 20px; justify-content: space-between; margin-bottom: 28px; }
.phil-step { color: var(--purple-700); }
.phil-section-head h3 { color: var(--ink); font-size: clamp(27px, 3.4vw, 39px); font-weight: 900; letter-spacing: -1.3px; line-height: 1.15; margin: 4px 0 8px; }
.phil-section-head p { color: var(--muted); margin-bottom: 0; max-width: 720px; }
.phil-code { background: var(--purple-100); border: 1px solid var(--purple-200); border-radius: 999px; color: var(--purple-800); flex: 0 0 auto; font-size: 11px; font-weight: 900; padding: 8px 12px; }

.phil-lab-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.65fr) minmax(260px, .75fr); }
.phil-lab-card,
.phil-info-card,
.phil-challenge,
.phil-hypothesis,
.phil-test-top,
.phil-transmission-demo,
.phil-discovery-table,
.phil-teacher-tools {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 7px 22px rgba(60, 28, 93, .055);
}
.phil-stage-card { min-width: 0; overflow: hidden; }
.phil-card-title { align-items: center; border-bottom: 1px solid var(--line); display: flex; font-size: 13px; font-weight: 850; justify-content: space-between; padding: 13px 18px; }
.phil-live { color: var(--red); font-size: 10px; letter-spacing: .7px; }
.phil-spread-svg,
.phil-reflect-svg,
.phil-shadow-svg { background: radial-gradient(circle at 50% 45%, #45286a, #1c1130 78%); display: block; height: auto; overflow: visible; width: 100%; }
.phil-spread-svg { min-height: 330px; touch-action: none; }
.phil-spread-rays line { animation: philRay .5s ease both; stroke: #ffdf59; stroke-linecap: round; stroke-width: 3; }
.phil-source-glow { animation: philPulse 2.5s infinite; pointer-events: none; }
.phil-light-source { cursor: grab; filter: drop-shadow(0 0 12px rgba(255, 222, 67, .9)); }
.phil-light-source:active { cursor: grabbing; }
.phil-svg-hint { fill: #d8cae9; font-size: 15px; font-weight: 700; }
.phil-grid-lines line { stroke: rgba(255,255,255,.11); stroke-width: 1; }
.phil-controls-row { align-items: center; display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; padding: 15px; }
.phil-switch { align-items: center; color: var(--ink); display: inline-flex; font-size: 13px; font-weight: 700; gap: 8px; }
.phil-switch input { height: 1px; opacity: 0; position: absolute; width: 1px; }
.phil-switch > span { background: #d4cddd; border-radius: 99px; display: inline-block; height: 22px; padding: 3px; transition: background .2s; width: 40px; }
.phil-switch > span::after { background: #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.18); content: ""; display: block; height: 16px; transition: transform .2s; width: 16px; }
.phil-switch input:checked + span { background: var(--purple-700); }
.phil-switch input:checked + span::after { transform: translateX(18px); }

.phil-info-stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.phil-info-card { padding: 18px; }
.phil-info-card h4 { font-size: 17px; line-height: 1.3; margin-bottom: 13px; }
.phil-mini-label { color: var(--purple-700); display: block; margin-bottom: 7px; }
.phil-choice-list { display: grid; gap: 8px; }
.phil-choice-list button,
.phil-inline-choices button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  min-height: 42px;
  padding: 9px 11px;
  text-align: left;
}
.phil-choice-list button:hover,
.phil-inline-choices button:hover { background: var(--purple-50); border-color: var(--purple-500); }
.phil-choice-list button.is-correct,
.phil-inline-choices button.is-correct { background: #e7f8f1; border-color: var(--green); color: #076446; }
.phil-choice-list button.is-wrong,
.phil-inline-choices button.is-wrong { background: #fff0f2; border-color: var(--red); color: #a5223a; }
.phil-feedback { border-radius: 10px; display: none; font-size: 12px; font-weight: 750; margin-top: 10px; padding: 10px; }
.phil-feedback.is-visible { display: block; }
.phil-feedback.is-correct { background: #e8f8f2; color: #087051; }
.phil-feedback.is-wrong { background: #fff0f2; color: #a2273d; }
.phil-note-card { align-items: flex-start; background: linear-gradient(135deg, #fff9d9, #fff); border-color: #f2df89; display: flex; gap: 12px; }
.phil-note-card p { color: #756421; font-size: 12px; margin: 4px 0 0; }
.phil-info-icon { align-items: center; background: #fff0a4; border-radius: 50%; display: flex; flex: 0 0 40px; height: 40px; justify-content: center; }
.phil-evidence { display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); }
.phil-evidence > span { align-items: center; background: var(--purple-50); border-radius: 10px; display: flex; flex-direction: column; font-size: 25px; gap: 4px; padding: 10px 4px; text-align: center; }
.phil-evidence small { color: var(--muted); font-size: 10px; font-weight: 750; }

.phil-challenge { align-items: center; display: grid; gap: 24px; grid-template-columns: minmax(220px, .7fr) minmax(400px, 1.3fr); margin-top: 24px; padding: 22px; }
.phil-challenge h4 { font-size: 21px; margin: 0 0 7px; }
.phil-challenge p { color: var(--muted); font-size: 13px; margin: 0; }
.phil-draw-board { background: #2c1947; border-radius: 14px; overflow: hidden; }
.phil-draw-board svg { display: block; width: 100%; }
.phil-draw-source { cursor: pointer; fill: var(--yellow); filter: drop-shadow(0 0 10px #ffd84d); }
.phil-draw-board svg > text { fill: #4a3700; font-size: 24px; }
.phil-target { cursor: pointer; }
.phil-target circle { fill: #fff; stroke: #b599cc; stroke-width: 3; }
.phil-target text { fill: var(--purple-900); font-size: 12px; font-weight: 900; text-anchor: middle; }
.phil-target.is-done circle { fill: #dff7ed; stroke: var(--green); }
.phil-user-rays line { animation: philRay .35s ease; stroke: var(--yellow); stroke-linecap: round; stroke-width: 4; }
.phil-board-actions { align-items: center; background: rgba(255,255,255,.08); color: #e9def5; display: flex; font-size: 12px; justify-content: space-between; padding: 8px 12px; }
.phil-board-actions .phil-btn { min-height: 34px; padding: 7px 10px; }

.phil-angle-readout { background: var(--purple-100); border-radius: 99px; color: var(--purple-800); padding: 5px 10px; }
.phil-reflect-svg { min-height: 350px; }
.phil-surface-smooth,
.phil-surface-rough { fill: none; stroke: #d6cae7; stroke-linecap: round; stroke-width: 10; }
.phil-surface-rough { display: none; stroke-linejoin: round; stroke-width: 6; }
.phil-reflect-svg.is-rough .phil-surface-smooth { display: none; }
.phil-reflect-svg.is-rough .phil-surface-rough { display: block; }
.phil-normal { stroke: #b698ce; stroke-dasharray: 7 7; stroke-width: 2; }
.phil-normal-label { fill: #d6c6e8; font-size: 13px; }
.phil-incoming { color: #50b9ff; stroke: currentColor; stroke-linecap: round; stroke-width: 5; }
.phil-reflected { color: #ffe25a; stroke: currentColor; stroke-linecap: round; stroke-width: 5; }
.phil-reflect-svg.is-rough .phil-reflected { opacity: .18; }
.phil-scattered line { color: #ffe25a; stroke: currentColor; stroke-linecap: round; stroke-width: 3; }
.phil-arc { fill: none; stroke-width: 3; }
.phil-arc-in { stroke: #50b9ff; }.phil-arc-out { stroke: #ffe25a; }
.phil-angle-text { fill: #fff; font-size: 15px; font-weight: 900; }
.phil-laser rect { fill: #d83858; }.phil-laser circle { fill: #ff7690; }.phil-laser text { fill: white; font-size: 9px; font-weight: 900; }
.phil-slider-control { padding: 16px 24px 20px; }
.phil-slider-control label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 9px; text-align: center; }
.phil-slider-control > div { align-items: center; display: flex; gap: 12px; }
.phil-slider-control span { color: var(--muted); font-size: 11px; font-weight: 800; }
.phil-slider-control input { accent-color: var(--purple-700); flex: 1; }
.phil-segment { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.phil-segment button { background: var(--purple-50); border: 2px solid transparent; border-radius: 12px; color: var(--ink); font-weight: 800; min-height: 98px; padding: 10px; }
.phil-segment button span,
.phil-segment button small { display: block; }
.phil-segment button span { font-size: 24px; }.phil-segment button small { color: var(--muted); font-size: 9px; margin-top: 4px; }
.phil-segment button.is-active { background: var(--purple-100); border-color: var(--purple-700); color: var(--purple-900); }
.phil-law-card { background: linear-gradient(135deg, var(--purple-900), var(--purple-700)); color: #fff; }
.phil-law-card .phil-mini-label { color: #e3c8f7; }
.phil-equation { align-items: center; display: grid; font-size: 11px; gap: 7px; grid-template-columns: 1fr auto 1fr; text-align: center; }
.phil-equation span { background: rgba(255,255,255,.12); border-radius: 8px; padding: 8px 5px; }
.phil-equation b { color: var(--yellow); font-size: 21px; }
.phil-law-card p { color: #eaddf5; font-size: 11px; margin: 10px 0 0; text-align: center; }
.phil-compare-strip { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; margin-top: 24px; }
.phil-compare-strip > div { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 17px; display: grid; gap: 5px 15px; grid-template-columns: 100px 1fr; padding: 17px; }
.phil-compare-strip h4 { font-size: 16px; margin: 0; }.phil-compare-strip p { color: var(--muted); font-size: 11px; grid-column: 2; margin: 0; }
.phil-compare-visual { background: #2d1849; border-radius: 10px; display: block; grid-row: 1 / span 2; height: 65px; overflow: hidden; position: relative; }
.phil-compare-visual::after { background: #d7c9e5; bottom: 8px; content: ""; height: 5px; left: 8px; position: absolute; right: 8px; }
.phil-compare-visual i { background: var(--yellow); bottom: 12px; height: 2px; left: 50%; position: absolute; transform-origin: 0 0; width: 35px; }
.phil-smooth-demo i:nth-child(1) { transform: translateX(-26px) rotate(-64deg); }.phil-smooth-demo i:nth-child(2) { transform: rotate(-90deg); }.phil-smooth-demo i:nth-child(3) { transform: translateX(25px) rotate(-116deg); }
.phil-rough-demo i:nth-child(1) { transform: translateX(-26px) rotate(-45deg); }.phil-rough-demo i:nth-child(2) { transform: rotate(-105deg); }.phil-rough-demo i:nth-child(3) { transform: translateX(25px) rotate(-145deg); }

.phil-info-band { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 15px; display: flex; gap: 12px; margin-bottom: 18px; padding: 13px 17px; }
.phil-info-band > span { font-size: 25px; }.phil-info-band p { color: var(--muted); flex: 1; font-size: 12px; margin: 0; }.phil-info-band p b { color: var(--ink); }
.phil-round { background: var(--purple-100); border-radius: 99px; color: var(--purple-800); font-size: 12px; font-weight: 800; padding: 6px 10px; }
.phil-sort-source { display: grid; gap: 12px; grid-template-columns: repeat(6, 1fr); margin-bottom: 18px; min-height: 105px; }
.phil-object-card { align-items: center; background: #fff; border: 2px solid var(--line); border-radius: 14px; color: var(--ink); display: flex; flex-direction: column; font-weight: 850; gap: 4px; justify-content: center; min-height: 98px; padding: 8px; text-align: center; transition: transform .16s, border .16s, box-shadow .16s; }
.phil-object-card:hover,
.phil-object-card.is-selected { border-color: var(--purple-600); box-shadow: 0 8px 18px rgba(83, 33, 121, .13); transform: translateY(-3px); }
.phil-object-card.is-selected { background: var(--purple-100); }
.phil-object-card span { font-size: 30px; line-height: 1; }.phil-object-card small { color: var(--muted); font-size: 10px; }
.phil-sort-zones { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.phil-dropzone { align-content: start; background: #fff; border: 2px dashed #ccc; border-radius: 18px; color: var(--ink); display: grid; gap: 5px 10px; grid-template-columns: 43px 1fr 26px; min-height: 200px; padding: 17px; text-align: left; }
.phil-dropzone { cursor: pointer; }
.phil-dropzone:hover,
.phil-dropzone.is-over { transform: translateY(-2px); }
.phil-dropzone > span > b,
.phil-dropzone > span > small { display: block; }.phil-dropzone > span > small { font-size: 10px; font-weight: 650; margin-top: 2px; }
.phil-zone-icon { align-items: center; border-radius: 50%; display: flex; font-size: 23px; height: 43px; justify-content: center; }
.phil-dropzone em { align-items: center; background: #fff; border-radius: 50%; display: flex; font-size: 11px; font-style: normal; font-weight: 900; height: 25px; justify-content: center; }
.phil-dropzone.is-transparent { background: #eff9ff; border-color: #6fc7ef; }.phil-dropzone.is-transparent .phil-zone-icon { background: #cfefff; color: #1783ba; }
.phil-dropzone.is-translucent { background: #fff8e8; border-color: #e9b959; }.phil-dropzone.is-translucent .phil-zone-icon { background: #ffeab8; color: #986912; }
.phil-dropzone.is-opaque { background: #f3eff8; border-color: #a18ab8; }.phil-dropzone.is-opaque .phil-zone-icon { background: #dfd2ed; color: #644378; }
.phil-dropped { align-content: start; display: flex; flex-wrap: wrap; gap: 5px; grid-column: 1 / -1; margin-top: 12px; }
.phil-dropped .phil-object-card { border: 1px solid rgba(0,0,0,.09); display: inline-flex; flex-direction: row; font-size: 10px; min-height: 34px; padding: 5px 8px; width: auto; }
.phil-dropped .phil-object-card span { font-size: 17px; }
.phil-object-card.is-correct { border-color: var(--green); }.phil-object-card.is-wrong { border-color: var(--red); background: #fff1f3; }
.phil-center-actions { display: flex; gap: 10px; justify-content: center; margin: 20px 0 10px; }
.phil-result-panel { border-radius: 12px; display: none; font-size: 13px; font-weight: 750; margin: 10px auto 22px; max-width: 650px; padding: 13px; text-align: center; }
.phil-result-panel.is-visible { display: block; }.phil-result-panel.is-correct { background: #e6f8f0; color: #08664b; }.phil-result-panel.is-wrong { background: #fff4dc; color: #7a570d; }
.phil-transmission-demo { margin-top: 24px; padding: 20px; }
.phil-transmission-demo h4 { margin-bottom: 15px; }
.phil-beam-row { align-items: center; display: grid; gap: 10px; grid-template-columns: 36px 1fr 90px 1fr 95px; margin: 8px 0; }
.phil-torch { font-size: 23px; }.phil-beam { background: linear-gradient(90deg, #ffd83d, #fff6a7); height: 10px; position: relative; }.phil-beam.half { opacity: .45; width: 54%; }.phil-beam.none { background: transparent; }.phil-material { border: 2px solid; border-radius: 7px; font-size: 10px; font-weight: 800; padding: 10px 3px; text-align: center; }.phil-material.glass { background: #dff6ff; border-color: #6cc2e5; }.phil-material.frost { background: #ecf0f3; border-color: #b9c1c8; }.phil-material.wood { background: #956443; border-color: #613e27; color: #fff; }.phil-beam-row small { color: var(--muted); font-size: 10px; font-weight: 750; }

.phil-hypothesis { align-items: center; display: grid; gap: 16px; grid-template-columns: 1fr auto; margin-bottom: 22px; padding: 17px 20px; }
.phil-hypothesis h4 { margin: 0; }.phil-hypothesis .phil-feedback { grid-column: 1 / -1; margin: 0; }
.phil-inline-choices { display: flex; gap: 7px; }
.phil-inline-choices button { min-width: 80px; text-align: center; }
.phil-shadow-layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.7fr) minmax(250px, .65fr); }
.phil-shadow-svg { min-height: 330px; }
.phil-light-cone { transition: d .25s ease; }
.phil-boundary { fill: none; stroke: rgba(255, 233, 92, .72); stroke-dasharray: 7 7; stroke-width: 2; }
.phil-shadow-lamp { filter: drop-shadow(0 0 18px rgba(255,221,76,.7)); }
.phil-shadow-lamp text { fill: #573c00; font-size: 28px; }
.phil-shadow-object circle,
.phil-shadow-object rect { fill: #121019; stroke: #84708c; stroke-width: 2; }
.phil-shadow-object text,
.phil-screen text { fill: #d4c6df; font-size: 11px; font-weight: 800; }
.phil-screen rect { fill: #d9d4df; }.phil-shadow-mark { fill: #241a2b; transition: all .35s ease; }
.phil-ground { stroke: #695479; stroke-width: 4; }
.phil-distance-labels line { stroke: #9d8aaa; stroke-width: 1; }.phil-distance-labels text { fill: #bbaeca; font-size: 10px; text-anchor: middle; }
.phil-shadow-stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.phil-shadow-stats div { border-right: 1px solid var(--line); padding: 12px 10px; text-align: center; }.phil-shadow-stats div:last-child { border: 0; }.phil-shadow-stats span,.phil-shadow-stats b { display: block; }.phil-shadow-stats span { color: var(--muted); font-size: 9px; font-weight: 750; }.phil-shadow-stats b { font-size: 14px; }.phil-shadow-stats .is-accent b { color: var(--purple-700); }
.phil-control-label { display: flex; font-size: 12px; font-weight: 750; justify-content: space-between; margin-bottom: 10px; }.phil-control-label b { color: var(--purple-700); }
.phil-purple-range { accent-color: var(--purple-700); width: 100%; }.phil-range-ends { color: var(--muted); display: flex; font-size: 9px; justify-content: space-between; }
.phil-discovery-table { display: grid; gap: 0; grid-template-columns: 150px repeat(4, 1fr); margin-top: 24px; overflow: hidden; }
.phil-discovery-table h4 { align-items: center; background: var(--purple-900); color: #fff; display: flex; justify-content: center; margin: 0; padding: 15px; }
.phil-discovery-table > div { border-left: 1px solid var(--line); padding: 12px; }.phil-discovery-table span,.phil-discovery-table strong { display: block; font-size: 10px; }.phil-discovery-table strong { color: var(--purple-700); font-size: 12px; margin-top: 5px; }

.phil-test-top { align-items: center; display: grid; gap: 18px; grid-template-columns: 105px 1fr auto; margin-bottom: 20px; padding: 18px 24px; }
.phil-score-ring { align-items: center; background: conic-gradient(var(--purple-700) var(--score, 0%), var(--purple-100) 0); border-radius: 50%; display: flex; flex-direction: column; height: 90px; justify-content: center; position: relative; width: 90px; }
.phil-score-ring::before { background: #fff; border-radius: 50%; content: ""; inset: 7px; position: absolute; }.phil-score-ring > * { position: relative; }.phil-score-ring strong { font-size: 25px; line-height: 1; }.phil-score-ring span { font-size: 11px; font-weight: 800; }.phil-score-ring small { color: var(--muted); font-size: 9px; }
.phil-test-top h4 { font-size: 20px; margin: 0 0 4px; }.phil-test-top p { color: var(--muted); font-size: 12px; margin: 0; }
.phil-test-dots { display: flex; gap: 6px; margin-top: 9px; }.phil-test-dots i { background: #ddd5e7; border-radius: 50%; height: 9px; width: 9px; }.phil-test-dots i.is-correct { background: var(--green); }.phil-test-dots i.is-wrong { background: var(--red); }
.phil-quiz { display: grid; gap: 14px; }
.phil-question { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.phil-question-head { align-items: flex-start; display: flex; gap: 12px; padding: 17px 18px 10px; }
.phil-question-number { align-items: center; background: var(--purple-800); border-radius: 10px; color: #fff; display: flex; flex: 0 0 34px; font-size: 13px; font-weight: 900; height: 34px; justify-content: center; }
.phil-question-head p { flex: 1; font-size: 14px; font-weight: 800; margin: 4px 0 0; }
.phil-topic-tag { background: var(--purple-100); border-radius: 99px; color: var(--purple-800); font-size: 9px; font-weight: 850; padding: 5px 8px; }
.phil-options { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; padding: 7px 18px 17px 64px; }
.phil-options button { background: #faf9fc; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-size: 12px; font-weight: 700; min-height: 42px; padding: 9px 11px; text-align: left; }
.phil-options button:hover { border-color: var(--purple-500); }.phil-options button.is-correct { background: #e8f8f2; border-color: var(--green); color: #076146; }.phil-options button.is-wrong { background: #fff0f2; border-color: var(--red); color: #a3283e; }
.phil-answer-row { align-items: center; background: var(--purple-50); border-top: 1px solid var(--line); display: flex; gap: 10px; min-height: 0; padding: 7px 18px 7px 64px; }
.phil-eye { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; color: var(--purple-800); display: flex; flex: 0 0 34px; font-size: 16px; height: 30px; justify-content: center; }
.phil-explanation { color: var(--muted); display: none; font-size: 11px; margin: 0; }.phil-explanation.is-visible { display: block; }
.phil-final-result { border-radius: 14px; display: none; font-size: 14px; font-weight: 800; margin-top: 18px; padding: 16px; text-align: center; }.phil-final-result.is-visible { background: linear-gradient(135deg, var(--purple-900), var(--purple-700)); color: #fff; display: block; }

.phil-teacher-grid { display: grid; gap: 22px; grid-template-columns: 1.15fr .85fr; }
.phil-timeline { display: grid; gap: 12px; }
.phil-timeline > div { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 15px; display: grid; gap: 12px; grid-template-columns: 53px 1fr auto; padding: 13px; }
.phil-timeline em { align-items: center; background: var(--purple-800); border-radius: 13px; color: #fff; display: flex; flex-direction: column; font-size: 20px; font-style: normal; font-weight: 900; height: 53px; justify-content: center; }.phil-timeline em::after { content: "saat"; font-size: 8px; font-weight: 700; }.phil-timeline b,.phil-timeline small { display: block; }.phil-timeline b { font-size: 14px; }.phil-timeline small { color: var(--muted); font-size: 10px; }.phil-timeline button { background: var(--purple-100); border: 0; border-radius: 9px; color: var(--purple-800); font-size: 11px; font-weight: 850; padding: 8px 11px; }
.phil-teacher-cards { display: grid; gap: 12px; }.phil-teacher-cards ol,.phil-teacher-cards ul { color: var(--muted); font-size: 12px; margin: 0; padding-left: 20px; }.phil-teacher-cards li { margin: 7px 0; }
.phil-teacher-tools { align-items: center; display: flex; gap: 18px; justify-content: space-between; margin-top: 20px; padding: 17px; }.phil-teacher-switch { font-size: 13px; }
.phil-app.is-teacher .phil-feedback { display: block; }.phil-app.is-teacher .phil-question-card .phil-feedback:not(.is-visible) { background: #ede6f6; color: var(--purple-900); }.phil-app.is-teacher [data-spread-feedback]:not(.is-visible)::after { content: "Doğru yanıt: Her yöne, doğrusal."; }.phil-app.is-teacher [data-reflect-feedback]:not(.is-visible)::after { content: "Doğru yanıt: Farklı yönlere yansır."; }.phil-app.is-teacher [data-shadow-feedback]:not(.is-visible)::after { content: "Doğru yanıt: Büyür."; }.phil-app.is-teacher .phil-explanation { display: block; }

.phil-footer { align-items: center; background: var(--purple-950); color: #cdbce0; display: flex; font-size: 10px; justify-content: space-between; padding: 14px 48px; }.phil-footer b { color: #fff; }
.phil-toast { background: var(--ink); border-radius: 12px; bottom: 24px; color: #fff; font-size: 12px; font-weight: 750; left: 50%; max-width: calc(100% - 36px); opacity: 0; padding: 11px 16px; pointer-events: none; position: fixed; transform: translate(-50%, 20px); transition: .25s; z-index: 99999; }.phil-toast.is-visible { opacity: 1; transform: translate(-50%,0); }

@keyframes philEnter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes philFloat { 0%,100% { transform: translate(-50%,-50%) rotate(-3deg); } 50% { transform: translate(-50%,calc(-50% - 10px)) rotate(3deg); } }
@keyframes philPulse { 0%,100% { opacity: .48; transform: scale(.94); transform-origin: center; } 50% { opacity: .9; transform: scale(1.08); } }
@keyframes philTwinkle { to { opacity: 1; transform: scale(1.8); } }
@keyframes philShine { 0% { left: -30%; } 45%,100% { left: 130%; } }
@keyframes philRay { from { opacity: 0; stroke-dasharray: 0 1000; } to { opacity: 1; stroke-dasharray: 1000 0; } }

@media (max-width: 980px) {
  .phil-hero { padding: 46px; }
  .phil-main { padding: 34px 28px 44px; }
  .phil-lab-grid,
  .phil-shadow-layout { grid-template-columns: 1fr; }
  .phil-info-stack { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .phil-challenge { grid-template-columns: 1fr; }
  .phil-sort-source { grid-template-columns: repeat(3,1fr); }
  .phil-nav { padding: 0 10px; }
  .phil-nav button { gap: 5px; }.phil-nav-icon { flex-basis: 31px; height: 31px; }
  .phil-discovery-table { grid-template-columns: repeat(2,1fr); }.phil-discovery-table h4 { grid-column: 1 / -1; }.phil-discovery-table > div { border-top: 1px solid var(--line); }
}

@media (max-width: 700px) {
  .phil-app { border-radius: 16px; margin: 12px auto; }
  .phil-hero { grid-template-columns: 1fr; padding: 37px 24px; }
  .phil-hero-visual { display: none; }
  .phil-hero h2 { letter-spacing: -2px; }
  .phil-progress-wrap { grid-template-columns: 115px 1fr 34px; padding: 13px 17px; }
  .phil-nav { display: flex; overflow-x: auto; padding: 0; scroll-snap-type: x mandatory; }
  .phil-nav button { flex: 0 0 115px; flex-direction: column; min-height: 79px; scroll-snap-align: start; }
  .phil-nav b,.phil-nav small { text-align: center; }.phil-nav small { display: none; }
  .phil-main { padding: 28px 15px 38px; }
  .phil-section-head { display: block; }.phil-code { display: inline-block; margin-top: 12px; }
  .phil-info-stack { display: flex; }
  .phil-spread-svg,.phil-reflect-svg,.phil-shadow-svg { min-height: 245px; }
  .phil-controls-row { align-items: stretch; flex-direction: column; }.phil-controls-row .phil-switch { justify-content: center; }
  .phil-challenge { padding: 15px; }.phil-draw-board { overflow-x: auto; }.phil-draw-board svg { min-width: 480px; }
  .phil-compare-strip { grid-template-columns: 1fr; }
  .phil-sort-source { grid-template-columns: repeat(2,1fr); }
  .phil-sort-zones { grid-template-columns: 1fr; }.phil-dropzone { min-height: 155px; }
  .phil-center-actions { align-items: stretch; flex-direction: column; }
  .phil-beam-row { grid-template-columns: 32px 1fr 75px 1fr; }.phil-beam-row small { display: none; }
  .phil-hypothesis { grid-template-columns: 1fr; }.phil-inline-choices { display: grid; grid-template-columns: repeat(3,1fr); }.phil-inline-choices button { min-width: 0; }
  .phil-shadow-svg { min-width: 600px; }.phil-stage-card:has(.phil-shadow-svg) { overflow-x: auto; }.phil-shadow-stats { min-width: 600px; }
  .phil-test-top { grid-template-columns: 80px 1fr; padding: 15px; }.phil-test-top > .phil-btn { grid-column: 1 / -1; }.phil-score-ring { height: 76px; width: 76px; }
  .phil-options { grid-template-columns: 1fr; padding-left: 18px; }.phil-answer-row { padding-left: 18px; }.phil-topic-tag { display: none; }
  .phil-teacher-grid { grid-template-columns: 1fr; }.phil-teacher-tools { align-items: stretch; flex-direction: column; }
  .phil-footer { align-items: flex-start; flex-direction: column; gap: 5px; padding: 14px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .phil-app *, .phil-app *::before, .phil-app *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media print {
  .phil-app { border: 0; box-shadow: none; }
  .phil-hero,.phil-progress-wrap,.phil-nav,.phil-footer,.phil-toast,.phil-teacher-tools { display: none !important; }
  .phil-main { padding: 0; }
  .phil-view { display: none !important; }
  .phil-view[data-view="ogretmen"] { display: block !important; }
  .phil-teacher-grid { grid-template-columns: 1fr 1fr; }
}
